Name |
Type |
Default value |
Description |
---|
Autocomplete |
string? |
null |
Specifies the value of the autocomplete attribute of the input component. |
Classes |
BitSearchBoxClassStyles? |
null |
Custom CSS classes for different parts of the BitSearchBox. |
DefaultValue |
string? |
null |
The default value of the text in the SearchBox, in the case of an uncontrolled component. |
DisableAnimation |
bool |
false |
Whether or not to animate the search box icon on focus. |
FixedIcon |
bool |
false |
Whether or not to make the icon be always visible (it hides by default when the search box is focused). |
HideIcon |
bool |
false |
Whether or not the icon is visible. |
HideClearButton |
bool |
false |
Whether to hide the clear button when the BitSearchBox has value. |
IsUnderlined |
bool |
false |
Whether or not the SearchBox is underlined. |
IconName |
string |
Search |
The icon name for the icon shown at the beginning of the search box. |
SuggestItems |
ICollection<string>? |
null |
The list of suggest items to display in the callout. |
SuggestItemProvider |
Func<string?, int, Task<ICollection<string>>>? |
null |
The function providing suggest items. |
SuggestItemTemplate |
RenderFragment<string>? |
null |
The custom template for rendering the suggest items of the BitSearchBox. |
MaxSuggestCount |
int |
5 |
The maximum number of items or suggestions that will be displayed. |
MinSuggestTriggerChars |
int |
3 |
The minimum character requirement for doing a search in suggested items. |
OnChange |
EventCallback<string?> |
|
Callback for when the input value changes. |
OnClear |
EventCallback |
|
Callback executed when the user clears the search box by either clicking 'X' or hitting escape. |
OnEscape |
EventCallback |
|
Callback executed when the user presses escape in the search box. |
OnSearch |
EventCallback<string?> |
|
Callback executed when the user presses enter in the search box. |
Placeholder |
string? |
null |
Placeholder for the search box. |
Styles |
BitSearchBoxClassStyles? |
null |
Custom CSS styles for different parts of the BitSearchBox. |
SuggestFilterFunction |
Func<string?, string?, bool>? |
null |
Custom search function to be used in place of the default search algorithm. |
SuggestThrottleTime |
int |
400 |
The delay, in milliseconds, applied to the search functionality. |
SearchButtonIconName |
string |
ChromeBackMirrored |
Custom icon name for the search button. |
ShowSearchButton |
bool |
false |
Whether to show the search button. |
Name |
Type |
Default value |
Description |
---|
AriaLabel |
string? |
null |
The aria-label of the control for the benefit of screen readers. |
Class |
string? |
null |
Custom CSS class for the root element of the component. |
Dir |
BitDir? |
null |
Determines the component direction. |
HtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Capture and render additional attributes in addition to the component's parameters. |
Id |
string? |
null |
Custom id attribute for the root element. if null the UniqueId will be used instead. |
IsEnabled |
bool |
true |
Whether or not the component is enabled. |
Style |
string? |
null |
Custom CSS style for the root element of the component. |
Visibility |
BitVisibility |
BitVisibility.Visible |
Whether the component is visible, hidden or collapsed. |