Configure Responsive Design and Width Constraints
mainThe component features automatic responsive behavior. When responsive={true} is enabled, the UI adapts based on screen width:
- Mobile (< 640px): 2 badges max, compact mode.
- Tablet (640px - 1024px): 4 badges max, normal mode.
- Desktop (> 1024px): 6 badges max, full features.
You can also enforce specific width constraints using minWidth and maxWidth props.
<MultiSelect
options={options}
onValueChange={setSelected}
responsive={true}
minWidth="200px"
maxWidth="400px"
placeholder="Constrained width"
/>