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 HiddenChoicebox
A bigger, juiced-up version of a Radio or Checkbox, giving users a chunky tap target and extra deets.
Basic
The Choicebox is an enhanced version of a Radio or Checkbox, offering users a larger tap target and additional details.
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 Choicebox'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
Single Selection
Although the Choicebox defaults to allowing multiple selections, it can be configured for single selection by setting the selectionMode
prop.
Columns and Gap
The Choicebox default layout is set with columns={2}
and a gap={4}
between items. You can customize these settings by providing your own columns
and gap
props.
No Gap
If you set gap={0}
and columns={1}
, the Choicebox items will lose their individual rounded corners, and the rounded corners will be applied to the parent container instead.
Icons
You can add icons to the Choicebox items by providing the icon
prop.
Disabled
Disable the entire Choicebox by applying the isDisabled
prop.
Individual items can also be disabled by specifying their keys in the disabledKeys
prop.