chipRenderer | function | | A function of the type ({ value, text, isFocused, isDisabled, handleClick, handleRequestDelete }, key) => node that returns a chip based on the given properties. This can be used to customize chip styles. |
clearOnBlur | bool | true | Clears the input value after the component looses focus if set to true. |
dataSource | array | | Data source for auto complete. |
dataSourceConfig | object | | Config for objects list dataSource, e.g. { text: 'text', value: 'value' } . If not specified, the dataSource must be a flat array of strings. |
defaultValue | string[] | | The chips to display by default (for uncontrolled mode). |
disabled | bool | false | Disables the chip input if set to true. |
errorText | node | | The error text to display. |
floatingLabelText | node | | The content of the floating label. |
fullWidth | bool | false | If true, the chip input will fill the available width. |
fullWidthInput | bool | false | If true, the input field will always be below the chips and fill the available space. By default, it will try to be beside the chips. |
hintText | node | | The hint text to display. |
id | string | a unique id | The id prop for the text field, should be set to some deteministic value if you use server-side rendering. |
newChipKeyCodes | number[] | [13] (enter key) | The key codes used to determine when to create a new chip. |
onChange | function | | Callback function that is called when the chips change (in uncontrolled mode). |
onRequestAdd | function | | Callback function that is called when a new chip was added (in controlled mode). |
onRequestDelete | function | | Callback function that is called when a new chip was removed (in controlled mode). |
onTouchTap | function | | Callback function that is called when text input is clicked. |
onUpdateInput | function | | Callback function that is called when the input changes (useful for auto complete). |
openOnFocus | bool | false | Opens the auto complete list on focus if set to true. |
style | object | | Override the inline-styles of the root element. |
value | string[] | | The chips to display (enables controlled mode if set). |