Carregando…
Carregando…
Carregando…Fixed toolbar bar that appears/disappears with optional dismiss button.
$ npx kikitocn add floating-barimport { FloatingBar } from "@/components/ui/cn/floating-bar/FloatingBar";
export function FloatingBarExample() {
return (
<FloatingBar position="top">
Floating Bar
</FloatingBar>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | React.ReactNode | — | Conteúdo da barra |
position | 'top' | 'bottom' | 'bottom' | Posição vertical da barra |
visible | boolean | true | Controla visibilidade |
onDismiss | () => void | — | Callback ao fechar |
className | string | — | Classes CSS extras |
style | React.CSSProperties | — | Estilos inline extras |
Floating action bar (toggle visibility + dismiss)
Position: top