Elements Search Input
Back to Elements

Search Input

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

search-input

Search input with icon.

Prop Type Default Description
ref bind: HTMLElement | null null
value bind: string ""
class as className string
size "sm" | "default" | "lg" "default"
placeholder string "Search..."
loading boolean false
onchange
onsearch
onclear
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.