Seed Bible extension API (v1.18.0) / seed-bible/components / SearchBarProps
Interface: SearchBarProps
Properties
aria-label?
"aria-label"?: string;Defaults to the placeholder.
className?
className?: string;Sizes or places the bar within its screen; the look comes from here.
dir?
dir?: "ltr" | "rtl" | "auto";The typed text's direction; "auto" for names in any script.
id?
id?: string;inputRef?
inputRef?: Ref<HTMLInputElement>;For callers that also need the input, e.g. to focus it themselves.
onFocus?
onFocus?: (event: FocusEvent) => void;Parameters
| Parameter | Type |
|---|---|
event | FocusEvent |
Returns
void
onInput
onInput: (value: string) => void;Called with the box's new text as the user types, and with "" on clear.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
void
onKeyDown?
onKeyDown?: (event: KeyboardEvent) => void;Parameters
| Parameter | Type |
|---|---|
event | KeyboardEvent |
Returns
void
placeholder
placeholder: string;value
value: string;variant?
variant?: "filled" | "panel";The bar's surface. filled (the default) is for a screen's own background; panel sits inside a floating panel.