# Field with input and textarea

> Field with input and textarea

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

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

## Files

### `c-field-2.tsx`

```tsx
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
} from "@/components/ui/field"
import { Input } from "@/components/ui/input"
import { Textarea } from "@/components/ui/textarea"

export function Pattern() {
  return (
    <div className="mx-auto w-full max-w-xs">
      <FieldGroup>
        <Field>
          <FieldLabel htmlFor="ticket-subject">Subject</FieldLabel>
          <Input id="ticket-subject" placeholder="Briefly describe the issue" />
          <FieldDescription>
            Use a clear and descriptive subject line.
          </FieldDescription>
        </Field>
        <Field>
          <div className="flex items-center justify-between">
            <FieldLabel htmlFor="ticket-message">Message</FieldLabel>
            <span className="text-muted-foreground text-xs">0/500</span>
          </div>
          <Textarea
            id="ticket-message"
            placeholder="Tell us more about your problem…"
            className="min-h-[120px]"
          />
          <FieldDescription>
            Include any relevant details to help us resolve your issue.
          </FieldDescription>
        </Field>
      </FieldGroup>
    </div>
  )
}
```
