# With Label

> Accessible field label linked to the select trigger.

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

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

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/select-10.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-10.tsx`

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

export function Select10() {
  return (
    <div className="flex w-full max-w-56 flex-col gap-2">
      <Label htmlFor="team-select">Team</Label>
      <Select defaultValue="design">
        <SelectTrigger id="team-select" className="w-full">
          <SelectValue placeholder="Select a team" />
        </SelectTrigger>
        <SelectContent>
          <SelectGroup>
            <SelectItem value="design">Design</SelectItem>
            <SelectItem value="engineering">Engineering</SelectItem>
            <SelectItem value="marketing">Marketing</SelectItem>
            <SelectItem value="support">Support</SelectItem>
          </SelectGroup>
        </SelectContent>
      </Select>
    </div>
  )
}
```
