ChipsInput
A chips input
(code example)
info
This component extends TextField props.
tip
This component support margin, color, typography modifiers.
#
Usage<ChipsInput placeholder={'Placeholder'} chips={[{label: 'Falcon 9'}, {label: 'Enterprise'}, {label: 'Challenger', borderRadius: 0}]}/>
#
API#
chipsList of chips to render
ChipProps[]
#
defaultChipPropsDefault set of props to pass by default to all chips
ChipProps
#
maxChipsThe maximum chips to allow adding
number
#
onChangeCallback for chips change (adding or removing chip)
(newChips, changeReason, updatedChip) => void