hc-oss / react-multi-select-component

Lightweight (~5KB gzipped) multiple selection dropdown component
https://codesandbox.io/s/react-multi-select-example-uqtgs
MIT License
386 stars 89 forks source link

How can i change defalut select placeholder #725

Open tarifalhasan opened 5 months ago

tarifalhasan commented 5 months ago

How can i change defalut select placeholder

zahid-nazir commented 5 months ago

@tarifalhasan You can use overrideStrings prop, like this

overrideStrings={{ allItemsAreSelected: "All items are selected.", clearSearch: "Clear Search", clearSelected: "Clear Selected", noOptions: "No options", search: "Search", selectAll: "Select All", selectAllFiltered: "Select All (Filtered)", selectSomeItems: "Custom Select Placeholder...", create: "Create", }} You can change the string of your choice. Working for me.