Collections

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 GridList, offering users a larger tap target and additional details.

Loading...

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Composed components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

The Choicebox comes packed with several components to enhance functionality and provide a seamless experience.

CheckboxAn interactive input that allows users to toggle a selection on or off, often used for settings or multiple-choice selections.

Manual installation

Make sure you also install the composed components and the required packages for the component to function properly.

Anatomy

Multiple selection

By default, it uses single selection mode. To allow multiple selections, set the selectionMode prop to 'multiple'. This enables users to select more than one item at a time.

Loading...

Columns and gap

By default, the gap between items is set to 0, and the columns prop is also 0. You can customize both by providing your own gap and columns values.

Loading...

Icons

You can add icons to the Choicebox items by providing the icon prop.

Loading...

Controlled

This component can function as either controlled or uncontrolled. For controlled use, provide the selectedKeys prop and manage updates with the onSelectionChange event handler.

Loading...

Disabled

Disable the entire Choicebox by applying the isDisabled prop.

Loading...

Individual items can also be disabled by specifying their keys in the disabledKeys prop.

<Choicebox disabledKeys={['sm', 'lg']} />
Flexible blocks and templates
Use ready-made blocks to craft unique pages without starting from scratch.
blocks.intentui.com
Choicebox / Intent UI