SearchAccessory
Combines a ToolbarSearchBar with an optional SegmentedControl for scope filtering. Designed for iPad navigation bar layouts.
Import
import { SearchAccessory } from '@scaffald/ui';
Basic Usage
Props
See the TypeScript definitions for the complete props API.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Current search text |
onChangeText | (text: string) => void | — | Text change handler |
placeholder | string | 'Search' | Placeholder text |
scopes | { label, value }[] | — | Scope filter tabs |
selectedScope | string | — | Currently selected scope |
onScopeChange | (scope: string) => void | — | Scope change handler |
showMicrophone | boolean | true | Show mic icon |
Accessibility
- Search input and segmented control are independently focusable
- Scope tabs provide tab semantics
Related Components
- ToolbarSearchBar — Standalone search bar
- SegmentedControl — Scope filter tabs
- NavigationBar — Uses search accessory in iPad mode
Changelog
See GitHub Releases for version history.