Search bar
Search bar
Component demo
Interactive example
<ic-search-barlabel="What is your favourite coffee?"placeholder="Start typing to search…"></ic-search-bar>
Search bar details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
|
|---|---|---|
|
|
The label for the search bar. |
|
|
|
The hint text for the hidden assistive description element. |
|
|
|
The automatic capitalisation of the text value as it is entered/edited by the user. Available options: "off", "none", "on", "sentences", "words", "characters". |
|
|
|
The state of autocompletion the browser can apply on the text value. |
|
|
|
The state of autocorrection the browser can apply when the user is entering/editing the text value. |
|
|
|
If |
|
|
|
The number of characters until suggestions appear. The submit button will be disabled until the inputted value is equal to or greater than this number. |
|
|
|
The amount of time, in milliseconds, to wait to trigger the |
|
|
|
Specify whether to disable the built in filtering. For example, if options will already be filtered from external source.
If |
|
|
|
If |
|
|
|
The text displayed when there are no options in the option list. |
|
|
|
If |
|
|
|
Specify whether the search bar fills the full width of the container.
If |
|
|
|
The helper text that will be displayed for additional field guidance. |
|
|
|
If |
|
|
|
The custom name for the label field to correspond with the IcMenuOption type. |
|
|
|
Trigger loading state when fetching options asynchronously |
|
|
|
Change the message displayed when external loading times out. |
|
|
|
Change the message displayed whilst the options are being loaded externally. |
|
|
|
The name of the control, which is submitted with the form data. |
|
|
|
The suggested search options. |
|
|
|
The placeholder value to display. |
|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
Specify the mode search bar uses to search. |
|
|
|
The size of the search bar component. |
|
|
|
If |
|
|
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
|
|
If using external filtering, set a timeout for when loading takes too long. |
|
|
|
The value of the search input. |
|
|
|
The custom name for the value field to correspond with the IcMenuOption type. |
|
|
The label for the search bar. |
|
The hint text for the hidden assistive description element. |
|
The automatic capitalisation of the text value as it is entered/edited by the user. Available options: "off", "none", "on", "sentences", "words", "characters". |
|
The state of autocompletion the browser can apply on the text value. |
|
The state of autocorrection the browser can apply when the user is entering/editing the text value. |
|
If |
|
The number of characters until suggestions appear. The submit button will be disabled until the inputted value is equal to or greater than this number. |
|
The amount of time, in milliseconds, to wait to trigger the |
|
Specify whether to disable the built in filtering. For example, if options will already be filtered from external source.
If |
|
If |
|
The text displayed when there are no options in the option list. |
|
If |
|
Specify whether the search bar fills the full width of the container.
If |
|
The helper text that will be displayed for additional field guidance. |
|
If |
|
The custom name for the label field to correspond with the IcMenuOption type. |
|
Trigger loading state when fetching options asynchronously |
|
Change the message displayed when external loading times out. |
|
Change the message displayed whilst the options are being loaded externally. |
|
The name of the control, which is submitted with the form data. |
|
The suggested search options. |
|
The placeholder value to display. |
|
|