0.83.0 (2024-06-25)
⚠ BREAKING CHANGES
- ComboBox component has been replaced.
To migrate to new version:
- Passing children is used instead of
options
prop to define dropdown
items. For cases where option value and display are the same, passing an
array of values as children
will work. For cases where value and
display differ, Item
elements must be passed as children. e.g. <Item key={value}>{display}</Item>
e.g.
// values will be used for display + value
const items = useMemo(
() => ['Aaa', 'Bbb', 'Ccc'],
[]
)
<ComboBox>{items}</ComboBox>
<ComboBox>
<Item key="aaa">Aaa</Item>
<Item key="bbb">Bbb</Item>
<Item key="ccc">Ccc</Item>
</ComboBox>
- The
spellcheck=false
prop is no longer supported or needed
searchPlaceholder
and inputPlaceholder
props are no longer
supported and should be omitted. There is an optional description
prop
for cases where a descriptive label is desired. There is also a label
prop for the primary component label.
Features
Bug Fixes