Skip to main content

IExtendedSearchBoxProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IExtendedSearchBoxProps

Interface: IExtendedSearchBoxProps

Props for the ExtendedSearchBox component.

Properties

Required

PropertyTypeDefaultDescription
onChange(newValue) => void-Callback triggered when a new search value is submitted or cleared.

Options

PropertyTypeDefaultDescription
ariaLabel?string-Aria label for accessibility.
disabled?booleanfalseWhether the component is disabled.
fullWidth?booleanfalseIf true, allows the search input to expand to fill available horizontal space.
placeholder?string'Search...'Placeholder text for the search box.
searchType?SearchTypesSearchTypes.searchByTextThe current search mode (searchByText or searchById).
showSearchTypeMenu?booleantrueWhether to show the search type dropdown menu.

Events & callbacks

PropertyTypeDefaultDescription
translate?(text) => string-Optional localization function to translate UI strings.

Advanced & escape hatches

PropertyTypeDefaultDescription
buttonProps?IButtonProps-Optional props passed to the Fluent UI PrimaryButton.
searchBoxProps?ISearchBoxProps-Optional props passed directly to the underlying Fluent UI SearchBox.