Carregando…
Carregando…
Carregando…Click-triggered popover panel with title, description, footer and placement.
$ npx kikitocn add popover@/lib/utilsimport { Popover } from "@/components/ui/cn/popover/Popover";
export function PopoverExample() {
return (
<Popover />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
content | ReactNode | undefined | Conteúdo livre do popover |
placement | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right' | 'bottom' | Posicionamento relativo ao trigger |
title | string | undefined | Título em negrito no topo do popover |
description | string | undefined | Texto de descrição abaixo do título |
footer | ReactNode | undefined | Área de ações no rodapé |
showClose | boolean | false | Exibe botão × no canto superior direito |
open | boolean | undefined | Estado controlado de abertura |
onOpenChange | (open: boolean) => void | undefined | Callback quando o estado de abertura muda |
children* | ReactElement | — | Elemento trigger (clicável) |
With title, description and footer
top · bottom · left · right