# Settings form

> A profile settings card — name fields, a bio textarea, and an email-notification toggle.

A shadcn/ui block from the [@quill](https://www.quilldesignsystem.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/quill/settings).

- Page, with a live preview: https://shadcn.exchange/r/quill/settings
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/quill/settings-light-4779368bc5f91a91.png
- Registry item: https://www.quilldesignsystem.com/r/settings.json
- Categories: settings, form
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.quilldesignsystem.com/r/settings.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: `card`, `input`, `textarea`, `label`, `button`, `switch`, `separator`

## Notes from the registry

A profile settings card — name fields, a bio textarea, and an email-notification toggle. Do: Keep Save changes and Cancel as two distinct, clearly differentiated actions (primary vs ghost). Don't: Make Cancel look as prominent as Save — the user should never mis-tap away unsaved changes as the default action. Use contact-form when you're sending a one-off message, not editing a persistent profile. Use wizard when setup needs multiple sequential steps, not a single settings page a user returns to and edits freely.

## Files

### `registry/blocks/settings.tsx`

```tsx
import {
  Card,
  CardHeader,
  CardTitle,
  CardDescription,
  CardContent,
  CardFooter,
} from '@/components/ui/card'
import { Input } from '@/components/ui/input'
import { Textarea } from '@/components/ui/textarea'
import { Label } from '@/components/ui/label'
import { Button } from '@/components/ui/button'
import { Switch } from '@/components/ui/switch'
import { Separator } from '@/components/ui/separator'

/** A profile settings card — name fields, a bio textarea, and an email-notification toggle. */
export function Settings() {
  return (
    <Card className="w-[560px]">
      <CardHeader>
        <CardTitle>Profile</CardTitle>
        <CardDescription>Update your public profile and notification preferences.</CardDescription>
      </CardHeader>
      <CardContent className="flex flex-col gap-5">
        <div className="grid grid-cols-2 gap-4">
          <div className="flex flex-col gap-1.5">
            <Label htmlFor="s-first">First name</Label>
            <Input id="s-first" defaultValue="Ada" />
          </div>
          <div className="flex flex-col gap-1.5">
            <Label htmlFor="s-last">Last name</Label>
            <Input id="s-last" defaultValue="Lovelace" />
          </div>
        </div>
        <div className="flex flex-col gap-1.5">
          <Label htmlFor="s-bio">Bio</Label>
          <Textarea id="s-bio" placeholder="Tell us a little about yourself…" />
        </div>
        <Separator />
        <div className="flex items-center justify-between">
          <div className="flex flex-col">
            <Label htmlFor="s-notify">Email notifications</Label>
            <span className="text-sm text-muted-foreground">Get notified about activity.</span>
          </div>
          <Switch id="s-notify" defaultChecked />
        </div>
      </CardContent>
      <CardFooter className="justify-end gap-2">
        <Button variant="ghost">Cancel</Button>
        <Button>Save changes</Button>
      </CardFooter>
    </Card>
  )
}
```
