Toast
Live example
Toast
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/toast.jsonAPI reference
These are the main Toast options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
timeout | number (milliseconds) | 5000 |
limit | number | 3 |
toastManager | caller-owned manager | — |
Notifications
Mount ToastProvider around controls that use useToast. Choose the status type to match the outcome; default/warning icons are gold, success/info blue and errors destructive red. Use inline validation for field errors rather than relying on transient notifications.