Components
Charts
Setting UpArea ChartLine ChartBar ChartPie ChartRadar ChartRadial Bar ChartScatter ChartTooltip ChartColors
Color AreaColor FieldColor PickerColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrag and drop
Drop ZoneForms
CheckboxCheckbox GroupFieldFormInput OTPNumber FieldRadio GroupSearch FieldTag FieldText FieldTextareaUtilities
Visually HiddenBasic
The basic multiple select component lets you select multiple options from a list. It displays selected options with Tag components.
Installation
If you hit any issues, make sure you check out the installation guide here for more information.
Composed Components
When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.
The Multiple Select's decked out with several components to make it bangin'.
Manual Installation
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Anatomy
Intent
By default, the multiple select component uses the primary
intent. But it has a secondary
intent as well.
Shape
Customize the tag field’s shape using the shape
prop.
Controlled
This component lets you select tags dynamically, updating the list with callbacks on add and remove. It displays selected tags with Tag components and logs each action.
Invalid
When the component is invalid, it displays an error message.
Disabled
When the component is disabled, it prevents the user from adding or removing tags.
Props
Here's the fixed table:
Prop | Type | Default | Description |
---|---|---|---|
label | string | - | The label of the tag field |
description | string | - | The description of the tag field |
placeholder | string | - | The placeholder of the tag field |
className | string | - | The class name of the tag field |
name | string | - | The name of the tag field |
list | ListData | - | The list of tags |
onItemInserted | (tag: TagItemProps) => void | - | The callback function when a tag is inserted |
onItemCleared | (tag: TagItemProps) => void | - | The callback function when a tag is cleared |
isDisabled | boolean | - | The disabled state of the tag field |
intent | string | 'primary' | 'primary', 'secondary' |
shape | string | 'square' | 'square', 'circle' |