Skip to main content

Variable: SelectGroup

@arolariu/components


@arolariu/components / SelectGroup

Variable: SelectGroup

const SelectGroup: ForwardRefExoticComponent<Omit<SelectGroupProps, "ref"> & RefAttributes<HTMLDivElement>> = BaseSelect.Group

Defined in: components/ui/select.tsx:115

Groups related select items into a shared logical section.

Remarks

  • Renders no DOM element by default beyond the underlying grouped option container
  • Built on Base UI Select
  • Supports composition through descendant render props
  • Styling via CSS Modules with --ac-* custom properties through descendant components

Example

<SelectGroup>
<SelectLabel>Team</SelectLabel>
<SelectItem value="one">One</SelectItem>
</SelectGroup>

See

Base UI Documentation

// was this page useful?