LayoutUpdated May 3, 2026

SearchInput

A search input with icon and optional clear action.

#Default usage

Search inputUse a label or aria-label when no visible label is present.

#Usage

Code
import { SearchInput } from "@froggdesign/enter-ui";

export function Example() {
  return (
    <SearchInput aria-label="Search components" placeholder="Search components..." />
  );
}

#Patterns

With valueProvide onClear in client code when the clear action should appear.

#Accessibility

SearchInput renders a native search input. Provide a visible label or aria-label. The clear button is only rendered when onClear and a value exist.

#API

  • Extends input props except type.
  • onClear enables the clear button.
  • clearLabel customizes the clear button accessible label.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.