Carregando…
Carregando…
Carregando…Portal toast notifications via context hook, 5 intents, 2 variants, configurable placement.
Dynamic Island Notification — pílula expansível estilo iOS
$ npx kikitocn add toast@/lib/utilsimport { Toast } from "@/components/ui/cn/toast/Toast";
export function ToastExample() {
return (
<Toast placement="top-left">
Toast
</Toast>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | ReactNode | — | Conteúdo envolvido pelo ToastProvider |
placement | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'bottom-right' | Posição das notificações na tela |
maxToasts | number | 5 | Número máximo de toasts simultâneos |
Toast — notification system with context provider