SelectGroup
Este conteúdo não está disponível em sua língua ainda.
import { SelectGroup } from "@rebasepro/ui";| Prop | Type | Required | Description |
|---|---|---|---|
label |
React.ReactNode |
yes | |
children |
React.ReactNode |
yes | |
className |
string |
— |
Example
Section titled “Example”This is the example the design-system sync renders and verifies for this component.
import { Select, SelectItem, SelectGroup } from "@rebasepro/ui";
// SelectGroup only renders inside an open Select's content surface — full// parent composition, controlled `open` (SelectProps has no `defaultOpen`).export const TwoGroups = () => ( <div className="w-[280px] p-4 h-[360px]"> <Select open label="Category" value="bug" onValueChange={() => {}} onOpenChange={() => {}}> <SelectGroup label="Type"> <SelectItem value="bug">Bug</SelectItem> <SelectItem value="feature">Feature</SelectItem> </SelectGroup> <SelectGroup label="Priority"> <SelectItem value="low">Low</SelectItem> <SelectItem value="high">High</SelectItem> </SelectGroup> </Select> </div>);