# V fieldset 10

> Basic fieldset

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-fieldset-10).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-fieldset-10
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-fieldset-10-light-4274f32438b31be4.png
- Registry item: https://ui.cnippet.dev/r/v-fieldset-10.json
- Categories: fieldset
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-fieldset-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: `@cnippet/fieldset`

## Files

### `registry/default/variants/v-fieldset-10.tsx`

```tsx
import {
  Field,
  FieldDescription,
  FieldError,
  FieldLabel,
} from "@/registry/default/ui/field";
import { Fieldset, FieldsetLegend } from "@/registry/default/ui/fieldset";
import { Input } from "@/registry/default/ui/input";

export function Pattern() {
  return (
    <Fieldset className="flex w-full max-w-sm flex-col gap-5">
      <FieldsetLegend>Social Links</FieldsetLegend>
      <Field>
        <FieldLabel>GitHub</FieldLabel>
        <div className="flex items-center overflow-hidden rounded-md border bg-background focus-within:ring-1 focus-within:ring-ring">
          <span className="whitespace-nowrap border-r bg-muted px-3 py-2 text-muted-foreground text-sm">
            github.com/
          </span>
          <input
            className="flex-1 bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
            placeholder="username"
            type="text"
          />
        </div>
      </Field>
      <Field>
        <FieldLabel>X / Twitter</FieldLabel>
        <div className="flex items-center overflow-hidden rounded-md border bg-background focus-within:ring-1 focus-within:ring-ring">
          <span className="border-r bg-muted px-3 py-2 text-muted-foreground text-sm">
            x.com/
          </span>
          <input
            className="flex-1 bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
            placeholder="handle"
            type="text"
          />
        </div>
      </Field>
      <Field>
        <FieldLabel>Website</FieldLabel>
        <Input placeholder="https://yoursite.com" type="url" />
        <FieldDescription>Include https://</FieldDescription>
        <FieldError>Please enter a valid URL.</FieldError>
      </Field>
    </Fieldset>
  );
}
```
