EEnterUI
DocsComponentsThemesDonation
Get Started
      • PageTabs
      • NavLink
      • Breadcrumb
      • Pagination
      • SearchInput
EnterUIDocsNavigation OverlaysNavigationPage NavigationSearchInput
Navigation OverlaysUpdated 6 May 2026

SearchInput

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.

#Default usage

Search input

Use a label or aria-label when no visible label is present.

Code
<SearchInput aria-label="Search components" placeholder="Search components..." />

#Import

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

#Patterns

With value

Provide 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.

PreviousPagination
NextContainer

On this page

  1. Default usage
  2. Import
  3. Patterns
  4. Accessibility
  5. API
  6. Styling