Notificación que se descarta deslizando y se consume sola.
npx shadcn@latest add https://reactbits.dev/r/SwipeToast-TS-TW
Para acciones frecuentes: confirmar, marcar, valorar. El feedback convierte un clic en una sensación.
| Prop | Tipo | Por defecto |
|---|---|---|
| title | ReactNode | "File archived" |
| description | ReactNode | "" |
| icon | ReactNode | undefined |
| actionLabel | ReactNode | "" |
| onAction | () => void | - |
| open | boolean | true |
| onClose | (reason) => void | - |
| background | string | "#27272a" |
| color | string | "#f5f5f5" |
| fuseColor | string | "#f5a524" |
| width | number | 356 |
| radius | number | 12 |
| slideMs | number | 400 |
| settleBounce | number | 0.2 |
| swipeDistance | number | 40 |
| duration | number | 4000 |
| fuse | "bottom" | "top" | "none" | "bottom" |
| pauseOnHover | boolean | true |
| closeButton | boolean | false |
| inline | boolean | false |
| dismissible | boolean | true |
| className | string | "" |