Design System Builder

Toast

Toast is a compound component that provides toast functionality.

Active
Toast Title
Toast

Examples

variant

Different variant options for the Toast component.

default

Toast Title
Toast

destructive

Toast Title
Toast

Installation

npm install @your-design-system/toast
import { Toast } from "@/components/ui/toast"

export function ToastDemo() {
  return (
    <Toast variant="default">
      {/* Content */}
    </Toast>
  )
}

API Reference

PropTypeDefaultDescription
titlestring-

The title prop for the component.

descriptionstring-

The description prop for the component.

Styling

The component uses Tailwind CSS classes for styling. You can customize the appearance by overriding these classes.

Base Classes

grouppointer-events-autorelativeflexw-fullitems-centerjustify-betweenspace-x-4overflow-hiddenrounded-mdp-6pr-8shadow-lgtransition-all

variant Variants

default

borderbg-backgroundtext-foreground

destructive

destructiveborder-destructivebg-destructivetext-destructive-foreground

Design System Compliance

This component is validated against atomic design principles and foundation token usage.