Passer au contenu principal

SearchBar

Implemented

Thumb-zone search trigger for mobile layouts (HV2 / R5, ADR-058). A plain button (no state, no navigation) that opens the DS SearchSheet; carries the 56px bar height, the 44px tap-target floor and a semantic focus ring (ADR-071: outset recipe with ring-offset-ep-bg). Pairs with SearchSheet; the consumer owns what 'open' does.

Categorymolecules
Sourcecomponents/molecules/SearchBar/SearchBar.tsx

Catalog fallback

Live MDX preview not available for SearchBar. Showing component catalog metadata instead.

Props

Prop
Type
Required
Default
Description
label
string
Required
—

Visible text and accessible name of the bar.

onOpen
() => void
Required
—

Called on click / Enter / Space.

hint
string
Optional
—

Optional secondary line (e.g. active filter summary).

className
string
Optional
—

Additional CSS classes on the button.

id
string
Optional
—

Stable id, useful as the sheet's return-focus target.

Quick use:<SearchBar />

Accessibility

ARIA rolebutton

ARIA

1 rule

WCAG 4.1.2

Native button with aria-haspopup='dialog' and an accessible name

style

1 rule

WCAG 2.5.5 / 2.5.8

min-h 56px (--ep-header-h-mobile) and 44px icon hit area (--ep-tap-min)

Design System v4.1.0 | ePassLive