Feedback
Glass Toast
Transient notification surface using Radix Toast.
Preview
Release demos ready. Update 0.
Installation
First add the exact @glassyui mapping to components.json as shown in Getting Started. Then run the pinned item command:
pnpm dlx [email protected] add @glassyui/glass-toastDirect registry declarations
These values belong to @glassyui/glass-toast itself in registry.json.
Package dependencies
@radix-ui/react-toastclsx
Registry dependencies
@glassyui/glass-panel
File targets
components/glassyui/glass-toast.tsx
Complete installed closure
This follows every namespaced registry dependency recursively and de-duplicates the packages and target files installed with this item.
Package dependencies
@radix-ui/react-toastclsx
Installed files
components/glassyui/glass-toast.tsxcomponents/glassyui/glass-panel.tsxcomponents/glassyui/glass-surface.tsxcomponents/glassyui/lib/merge-refs.tscomponents/glassyui/lib/use-local-light.tscomponents/glassyui/lib/refraction-map.tscomponents/glassyui/lib/use-refraction-filter.tsxcomponents/glassyui/glass-provider.tsxcomponents/glassyui/liquid-filters.tsxcomponents/glassyui/lib/preferences.tscomponents/glassyui/styles/liquid.css
Usage
import { GlassToast, GlassToastDescription, GlassToastProvider, GlassToastTitle, GlassToastViewport } from "@/components/glassyui/glass-toast";
export function ToastDemo() {
return (
<GlassToastProvider>
<GlassToast open>
<GlassToastTitle>Saved</GlassToastTitle>
<GlassToastDescription>Your changes are stored.</GlassToastDescription>
</GlassToast>
<GlassToastViewport />
</GlassToastProvider>
);
}Examples
<GlassToastAction altText="Undo">Undo</GlassToastAction>API
GlassToastProviderRadix Toast provider.
GlassToastGlass panel toast root.
GlassToastViewportFixed viewport for toast placement.
GlassToastTitleStyled Radix toast title.
GlassToastDescriptionStyled Radix toast description.
GlassToastCloseRadix toast close primitive.
GlassToastActionRadix toast action primitive.
Notes
Accessibility
Keep the Radix-backed semantics intact and preserve visible labels, focus states, and keyboard operation when copying the source.
Performance
Use provider quality preferences for dense app screens. Reserve strong refraction for hero or showcase surfaces.