# Field with select control

> Field with select control

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-field-3).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-field-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-field-3-light-55a312480f0b5ff6.png
- Registry item: https://reui.io/r/new-york-v4/c-field-3.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-field-3.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: `field`, `select`

## Files

### `c-field-3.tsx`

```tsx
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
} from "@/components/ui/field"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/select"

export function Pattern() {
  return (
    <div className="mx-auto w-full max-w-xs">
      <FieldGroup>
        <Field>
          <FieldLabel htmlFor="plan-selection">Subscription Plan</FieldLabel>
          <Select defaultValue="pro">
            <SelectTrigger id="plan-selection">
              <SelectValue placeholder="Select a plan" />
            </SelectTrigger>
            <SelectContent>
              <SelectItem value="free">Free - Basic features</SelectItem>
              <SelectItem value="pro">Pro - Advanced tools</SelectItem>
              <SelectItem value="enterprise">
                Enterprise - Custom solutions
              </SelectItem>
            </SelectContent>
          </Select>
          <FieldDescription>
            Choose the plan that best fits your needs.
          </FieldDescription>
        </Field>
        <Field>
          <FieldLabel htmlFor="billing-cycle">Billing Cycle</FieldLabel>
          <Select defaultValue="yearly">
            <SelectTrigger id="billing-cycle">
              <SelectValue placeholder="Select billing cycle" />
            </SelectTrigger>
            <SelectContent>
              <SelectItem value="monthly">Monthly billing</SelectItem>
              <SelectItem value="yearly">Yearly billing (Save 20%)</SelectItem>
            </SelectContent>
          </Select>
          <FieldDescription>
            Billing cycles can be changed at any time.
          </FieldDescription>
        </Field>
      </FieldGroup>
    </div>
  )
}
```
