Carregando…
Carregando…
Carregando…Compact alert card with icon box, title, description and dismiss.
$ npx kikitocn add simple-alert@/lib/utilsimport { SimpleAlert } from "@/components/ui/cn/simple-alert/SimpleAlert";
export function SimpleAlertExample() {
return (
<SimpleAlert title="Título" intent="info" />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
title* | string | — | Título do alerta |
description | string | undefined | Descrição secundária |
intent | 'info' | 'success' | 'warning' | 'danger' | 'neutral' | 'danger' | Intenção semântica (define a cor do ícone) |
icon | ReactNode | undefined | Ícone customizado (sobrescreve o padrão) |
dismissible | boolean | true | Exibe o botão de fechar (×) |
onDismiss | () => void | undefined | Callback chamado ao fechar |
className | string | — | Classes CSS extras |
style | React.CSSProperties | — | Estilos inline extras |
Simple Alert — ícone em caixa + título + descrição
Please try again
This is the description part
Changes saved
Everything is up to date
Heads up
A new version is available