Carregando…
Carregando…
Carregando…Search button that expands into an input, with an SVG 'goo' filter melting the detached icon bubble into the field — adapted from Aceternity UI.
$ npx kikitocn add gooey-input@/lib/utilsmotionimport { GooeyInput } from "@/components/ui/cn/gooey-input/GooeyInput";
export function GooeyInputExample() {
return (
<GooeyInput />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
placeholder | string | 'Buscar…' | Placeholder do input |
collapsedWidth | number | 115 | Largura (px) recolhido |
expandedWidth | number | 200 | Largura (px) expandido |
gooeyBlur | number | 5 | Blur do filtro goo |
value | string | — | Valor controlado |
onValueChange | (value: string) => void | — | Callback ao digitar |
onOpenChange | (open: boolean) => void | — | Callback ao expandir/recolher |
disabled | boolean | false | Desabilita o controle |
Gooey Input — clique pra expandir; o ícone se funde ao campo