4.0.5 • Published 7 days ago
@brighthr/component-listtypeahead v4.0.5
ListTypeahead
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-listtypeahead
To implement the ListTypeahead component into your project you’ll need to add the import:
import ListTypeahead from '@brighthr/component-listtypeahead';
After adding import into your project you can use it simply like:
<ListTypeahead />
Props
Name | Type | Default | Description |
---|---|---|---|
disabled | boolean | If true , disables the ListTypeahead | |
hasError | boolean | If true , shows a red error theme. | |
id | |||
isMultiSelect | boolean | false | If true , |
name | string | Sets a html id the input. | |
options | [{ id: string, label: string }] | Defines the options to appear in the type ahead. | |
placeholder | string | 'Search or select' | Sets the placeholder. |
selectedItems | [{ id: string, label: string }] | Sets the items that are currently selected. | |
setSelectedItems | (value: option[]) => void | Function for handling setting the selected items. |
4.0.5
7 days ago
4.0.4
7 days ago
4.0.3
7 days ago
4.0.2
8 days ago
4.0.1
3 months ago
4.0.0
3 months ago
3.0.12
3 months ago
3.0.11
3 months ago
3.0.10
4 months ago
3.0.9
4 months ago
3.0.8
4 months ago
3.0.7
5 months ago
3.0.6
6 months ago
3.0.5
6 months ago
3.0.4
6 months ago
3.0.3
6 months ago
3.0.2
6 months ago
3.0.1
7 months ago
3.0.0
8 months ago
2.1.4
8 months ago
2.1.3
8 months ago
2.1.2
8 months ago
2.1.1
9 months ago
2.1.0
9 months ago
2.0.1
9 months ago
2.0.0
9 months ago
1.0.1
10 months ago
1.0.0
10 months ago
0.0.2
11 months ago