# Grouped

> Options organized into labeled groups.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/select-02).

- Page, with a live preview: https://shadcn.exchange/r/flx/select-02
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/select-02-light-d3aa1284f4c23daa.png
- Registry item: https://ui.flexnative.com/r/select-02.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/select-02.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `select`, `label`

## Files

### `registry/patterns/select/select-02.tsx`

```tsx
import {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectLabel,
  SelectTrigger,
  SelectValue,
} from '@/components/ui/select'

export function Select02() {
  return (
    <Select>
      <SelectTrigger className="w-full max-w-56">
        <SelectValue placeholder="Select timezone" />
      </SelectTrigger>
      <SelectContent>
        <SelectGroup>
          <SelectLabel>Americas</SelectLabel>
          <SelectItem value="utc-5">Eastern Time (UTC-5)</SelectItem>
          <SelectItem value="utc-6">Central Time (UTC-6)</SelectItem>
          <SelectItem value="utc-7">Mountain Time (UTC-7)</SelectItem>
          <SelectItem value="utc-8">Pacific Time (UTC-8)</SelectItem>
        </SelectGroup>
        <SelectGroup>
          <SelectLabel>Europe</SelectLabel>
          <SelectItem value="utc+0">London (UTC+0)</SelectItem>
          <SelectItem value="utc+1">Paris (UTC+1)</SelectItem>
          <SelectItem value="utc+2">Kyiv (UTC+2)</SelectItem>
        </SelectGroup>
      </SelectContent>
    </Select>
  )
}
```
