Cant change EmptySelectResults
Hello,
I've tried to change EmptySelectResults label but it did not working.
<MultiSelect
options={optionsFilter}
value={selectedFilter}
EmptySelectResults={{label:'Its changed'}}
onChange={setSelectedFilter}
/>
Any idea?
Hey there 👋. I don't know which prop you are referring to, the MultiSelect component has these props available:
https://bmartel.github.io/chakra-multiselect/docs/interfaces/MultiSelectProps.html
I realize the ask here is to make it configurable, which could be made to happen, though I don't know I agree with cluttering up the API with component overrides, the API of this library was more-so positioned to allow more composition of the underlying building blocks over prop driven customization.
In the latest published release you will be able to pass this in through listProps:
<MultiSelect options={optionsFilter} value={selectedFilter} listProps={{emptyResultsLabel: 'Its changed'}} onChange={setSelectedFilter} />