The current MultiSelect component does not support the feature of adding a prefix.
We would like the MultiSelect component to provide a way to add an icon OR text as a prefix.
Solution you'd like
A new prop called prefix which accepts a React.FC<any> as a value and displays the same as a prefix in the MultiSelect component on the UI.
The prefix prop should be optional.
The component passed in the prefix prop should take the color of the label.
The prefix component should leave a 1.6rem margin on its right side.
The prefix component should be displayed vertically in the center.
Additional context
This feature has already been added as a part of the SingleSelect component.
Description
The current
MultiSelect
component does not support the feature of adding a prefix. We would like theMultiSelect
component to provide a way to add an icon OR text as a prefix.Solution you'd like
prefix
which accepts aReact.FC<any>
as a value and displays the same as a prefix in theMultiSelect
component on the UI.prefix
prop should be optional.prefix
prop should take the color of the label.prefix
component should leave a1.6rem
margin on its right side.prefix
component should be displayed vertically in the center.Additional context
This feature has already been added as a part of the
SingleSelect
component.