Search Input

Search fields with clear control, pill shape, and start or end icon placement.

Installation

Add this item from the registry, or import it from the package after installing Default File UI.

Registry path

itsvigneshv/default-file-ui/search-input

Package import

import { SearchInput } from "@default-file/ui/components/df-search-input"

Default

Search field with clear control.

Variants

Same field, search icon on the left or right.

Sizes

Small, medium, and large.

Properties

Search field with clear control, sizes, and start or end icon placement. SearchBar is an alias.

SearchInput

PropTypeDefaultNotes
variant"default" | "pill""default"Field shape.
size"sm" | "md" | "lg""md"T-shirt height and type size.
iconPosition"start" | "end""start"Side for the leading search icon.
leadingIconReactNode | falseOverride or hide the default search icon.
trailingReactNodeCustom trailing slot beside clear when present.
clearablebooleantrueShow a clear control when the field has a value.
onClear() => voidCalled when the clear control is activated.
inputClassNamestringClasses on the inner input element.
classNamestringClasses on the outer search shell.
…input attributesInput attrs (minus size, className)value, placeholder, onChange, disabled, aria-label, etc.