# Field Layouts 3 - Responsive layout

> Fields that switch between vertical and horizontal at breakpoints.

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

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/field-field-layouts-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/field-field-layouts-3-light-4a58c17e30b1e7f1.png
- Registry item: https://shadcnblocks.com/r/field-field-layouts-3.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/field-field-layouts-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`, `input`

## Files

### `example/field/field-layouts-3.tsx`

```tsx
import { Field, FieldGroup, FieldLabel, FieldSet } from "@/components/ui/field";
import { Input } from "@/components/ui/input";

export const title = "Responsive Layout";

const Example = () => (
  <div className="w-full max-w-md">
    <FieldSet>
      <FieldGroup>
        <Field orientation="responsive">
          <FieldLabel htmlFor="display-name-r">Display Name</FieldLabel>
          <Input
            className="bg-background"
            id="display-name-r"
            placeholder="John Doe"
            type="text"
          />
        </Field>
        <Field orientation="responsive">
          <FieldLabel htmlFor="username-r">Username</FieldLabel>
          <Input
            className="bg-background"
            id="username-r"
            placeholder="@johndoe"
            type="text"
          />
        </Field>
      </FieldGroup>
    </FieldSet>
  </div>
);

export default Example;
```
