Carregando…
Carregando…
Carregando…Search field with magnifier icon, clear button, shortcut hint and loading state.
$ npx kikitocn add search-inputimport { SearchInput } from "@/components/ui/cn/search-input/SearchInput";
export function SearchInputExample() {
return (
<SearchInput size="sm" />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
value | string | — | Valor controlado |
defaultValue | string | — | Valor inicial |
onChange | (value: string) => void | — | Callback ao digitar |
onSearch | (value: string) => void | — | Callback ao submeter (Enter) |
placeholder | string | 'Search…' | Placeholder |
size | 'sm' | 'md' | 'lg' | 'md' | Tamanho do campo |
shortcut | string | — | Atalho de teclado exibido (ex: '⌘K') |
loading | boolean | false | Exibir spinner de carregamento |
disabled | boolean | false | Desabilitar campo |
className | string | — | Classes CSS extras |
style | CSSProperties | — | Estilos inline pro container |
Search Input — clear button, loading, shortcut hint
Pill que expande no foco + glow ao pressionar Enter