A compact select input styled as a settings cell, ideal for preference panels and configuration forms.
import {CellSelect} from "@heroui-pro/react";
import {ListBox} from "@heroui/react";
<CellSelect>
<CellSelect.Trigger>
<CellSelect.Label />
<CellSelect.Value />
<CellSelect.Indicator />
</CellSelect.Trigger>
<CellSelect.Popover>
<ListBox>
<ListBox.Item>{/* ... */}</ListBox.Item>
</ListBox>
</CellSelect.Popover>
</CellSelect>;A single cell with a label, the selected value, and a dropdown of options.
HeroUI follows the BEM methodology to ensure component variants and states are reusable and easy to customize.
The Cell Select component uses these CSS classes:
.cell-select: Root wrapper.cell-select__trigger: The visible cell row (wraps Select.Trigger).cell-select__label: Leading text label.cell-select__value: Selected value display.cell-select__indicator: Chevron icon.cell-select__popover: Dropdown panel.cell-select__trigger--default: Default variant trigger styling.cell-select__trigger--secondary: Secondary variant trigger stylingThe root component. Wraps HeroUI Select with cell-style layout.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'secondary' | 'default' | Visual style variant |
Also supports all HeroUI Select props except variant.
The visible cell row containing label, value, and indicator.
Also supports all HeroUI Select.Trigger props.
Leading text label rendered as a span.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Label text |
Also supports all native span HTML attributes.
Display of the currently selected value.
Also supports all HeroUI Select.Value props.
Chevron icon. Defaults to a ChevronsExpandVertical icon when no children are provided.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Custom indicator icon |
Also supports all HeroUI Select.Indicator props.
Dropdown panel for selection options.
| Prop | Type | Default | Description |
|---|---|---|---|
placement | Placement | 'bottom end' | Popover placement relative to the trigger |
Also supports all HeroUI Select.Popover props.
Resources