Feedback
Toast
betaBrief, non-blocking notifications with actions and promise states.
since v3.63.2 kB gzip
Preview
Installation
npx @strata/cli add toastUsage
import { toast } from "@/components/strata";
toast.success("Theme published", {
description: "aurora is now the default for 3 apps.",
});Props
| Prop | Type | Default |
|---|---|---|
titleMain message. | string | — |
descriptionSecondary line. | string | — |
durationAuto-dismiss delay in ms. | number | 4000 |
actionOptional inline action. | { label: string; onClick: () => void } | — |
Accessibility
Related
Was this page helpful?
Documented since v3.6 · components/toast.mdx