Carregando…
Carregando…
Carregando…Block callout with soft / outline / solid appearances and close button.
$ npx kikitocn add callout@/lib/utilsimport { Callout } from "@/components/ui/cn/callout/Callout";
export function CalloutExample() {
return (
<div className="flex flex-col gap-3 max-w-lg">
<Callout intent="info" title="Dica">
Use tokens para customizar o tema sem sobrescrever CSS.
</Callout>
<Callout intent="warning" title="Atenção" appearance="outline">
Essa ação não pode ser desfeita.
</Callout>
</div>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
intent | 'info' | 'success' | 'warning' | 'danger' | 'neutral' | 'info' | Intenção semântica (cor e ícone padrão) |
appearance | 'soft' | 'outline' | 'solid' | 'soft' | Estilo visual do callout |
title | string | undefined | Título em negrito acima do conteúdo |
icon | ReactNode | undefined | Ícone customizado |
onClose | () => void | undefined | Exibe botão × e chama callback ao fechar |
action | ReactNode | undefined | Área de ação abaixo do conteúdo |
children | ReactNode | undefined | Conteúdo do callout |
Soft (default)
Info
Success
Warning
Danger
Outline
Heads up
Action required