Glassy UI
Browse docsToast

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:

Install Glass Toast

pnpm dlx [email protected] add @glassyui/glass-toast

Direct registry declarations

These values belong to @glassyui/glass-toast itself in registry.json.

Package dependencies

  • @radix-ui/react-toast
  • clsx

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-toast
  • clsx

Installed files

  • components/glassyui/glass-toast.tsx
  • components/glassyui/glass-panel.tsx
  • components/glassyui/glass-surface.tsx
  • components/glassyui/lib/merge-refs.ts
  • components/glassyui/lib/use-local-light.ts
  • components/glassyui/lib/refraction-map.ts
  • components/glassyui/lib/use-refraction-filter.tsx
  • components/glassyui/glass-provider.tsx
  • components/glassyui/liquid-filters.tsx
  • components/glassyui/lib/preferences.ts
  • components/glassyui/styles/liquid.css

Usage

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

Action toast

<GlassToastAction altText="Undo">Undo</GlassToastAction>

API

GlassToastProvider

Radix Toast provider.

GlassToast

Glass panel toast root.

GlassToastViewport

Fixed viewport for toast placement.

GlassToastTitle

Styled Radix toast title.

GlassToastDescription

Styled Radix toast description.

GlassToastClose

Radix toast close primitive.

GlassToastAction

Radix 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.