# Responsive field layout

> Responsive field layout

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-field-9
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-field-9-light-1d46f3da5a2020c8.png
- Registry item: https://reui.io/r/new-york-v4/c-field-9.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-9.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: `button`, `field`, `input`, `select`

## Files

### `c-field-9.tsx`

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

export function Pattern() {
  return (
    <div className="mx-auto w-full max-w-lg">
      <FieldGroup>
        <Field orientation="responsive">
          <FieldLabel htmlFor="resp-first">First Name</FieldLabel>
          <Input id="resp-first" placeholder="First name" />
        </Field>
        <Field orientation="responsive">
          <FieldLabel htmlFor="resp-last">Last Name</FieldLabel>
          <Input id="resp-last" placeholder="Last name" />
        </Field>
        <Field orientation="responsive">
          <FieldLabel htmlFor="resp-email">Email</FieldLabel>
          <Input id="resp-email" type="email" placeholder="you@example.com" />
        </Field>
        <Field orientation="responsive">
          <FieldLabel htmlFor="resp-role">Role</FieldLabel>
          <Select defaultValue="member">
            <SelectTrigger id="resp-role">
              <SelectValue placeholder="Select role" />
            </SelectTrigger>
            <SelectContent>
              <SelectItem value="admin">Admin</SelectItem>
              <SelectItem value="member">Member</SelectItem>
              <SelectItem value="viewer">Viewer</SelectItem>
            </SelectContent>
          </Select>
        </Field>
        <FieldSeparator />
        <FieldDescription>
          The invited member will receive an email with a link to join.
        </FieldDescription>
        <div className="flex justify-end gap-2">
          <Button variant="outline">Cancel</Button>
          <Button>Send Invite</Button>
        </div>
      </FieldGroup>
    </div>
  )
}
```
