Brutal toast
A solid colour column with a big icon, a thick ink frame and a hard shadow.
Customize
Props
Type
Installation
npx shadcn@latest add https://skinsui.dev/r/toast-brutal.jsonUsage
usage.tsx
import { Button } from "@/components/skins/button-brutal";import { ToastProvider, useToast } from "@/components/skins/toast-brutal";export function App() { return ( <ToastProvider> <SaveButton /> </ToastProvider> );}function SaveButton() { const toast = useToast(); return ( <Button onClick={() => toast.add({ title: "Changes saved", description: "Your new skin is live for everyone on the team.", type: "success", }) } > Show toast </Button> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| limit | "1" | "3" | "5" | "3" | How many toasts can show at once. Older ones fold away behind the newest. |
| timeout | number | 5000 | How long each toast stays, in milliseconds. Hovering keeps it. |
- limit"3"
"1" | "3" | "5"How many toasts can show at once. Older ones fold away behind the newest.
- timeout5000
numberHow long each toast stays, in milliseconds. Hovering keeps it.
Parts
| Part | Renders | Description |
|---|---|---|
| ToastProvider | <div> | Wrap your app once. It holds the toasts and draws them in the corner. |
| useToast | <hook> | Returns add, update and close. Call add with a title, a description and a type. |
- ToastProvider<div>
Wrap your app once. It holds the toasts and draws them in the corner.
- useToast<hook>
Returns add, update and close. Call add with a title, a description and a type.