A search input with icon and optional clear action.
SearchInput defines how EnterUI handles a search input with icon and optional clear action, including default structure, accessible states, and token-driven styling.
Use a label or aria-label when no visible label is present.
<SearchInput aria-label="Search components" placeholder="Search components..." />import { SearchInput } from "@froggdesign/enter-ui-react";Provide onClear in client code when the clear action should appear.
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.
type.onClear enables the clear button.clearLabel customizes the clear button accessible label.Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.