Khan / react-multi-select

A multiple select component for React
MIT License
183 stars 97 forks source link

how can i change "Custom Heading Renderer" #71

Closed foramsojitra closed 3 years ago

foramsojitra commented 4 years ago

right now when i select header has value of selected i only want number of selected

v-honcharenko commented 4 years ago

@foramsojitra Use valueRenderer prop:

<MultiSelect
  ...
  valueRenderer={(selected) => (
    <span>{selected.length}</span>
  )}
/>