{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "settings-01",
  "title": "Settings",
  "description": "An account settings page: a section list beside profile, notification switches, density radio cards and a danger zone. Renders in any Satori UI design system (cueit, skita, folio or a generated one): install a system first.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "avatar",
    "button",
    "card",
    "input",
    "label",
    "radio-group",
    "separator",
    "switch",
    "textarea"
  ],
  "files": [
    {
      "path": "design-systems/blocks/settings-01.tsx",
      "content": "import * as React from \"react\";\nimport { Bell, Palette, TriangleAlert, User } from \"lucide-react\";\nimport { Avatar, AvatarFallback } from \"@/components/ui/avatar\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { Switch } from \"@/components/ui/switch\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * An account settings page: a section list beside profile, notification,\n * appearance and danger-zone cards.\n *\n * Written against the block contract only, so it takes the look of\n * whichever design system scopes it. Every control is uncontrolled with a\n * default; wire `name`s into your form action or swap in controlled state.\n */\n\nconst SECTIONS = [\n  { id: \"profile\", label: \"Profile\", icon: User },\n  { id: \"notifications\", label: \"Notifications\", icon: Bell },\n  { id: \"appearance\", label: \"Appearance\", icon: Palette },\n  { id: \"danger-zone\", label: \"Danger zone\", icon: TriangleAlert },\n];\n\nconst NOTIFICATIONS = [\n  { id: \"mentions\", label: \"Mentions\", description: \"When someone @mentions you in a comment.\", on: true },\n  { id: \"digest\", label: \"Weekly digest\", description: \"A Monday summary of what changed.\", on: true },\n  { id: \"billing\", label: \"Billing\", description: \"Receipts, failed payments and renewals.\", on: true },\n  { id: \"product\", label: \"Product news\", description: \"New features, at most twice a month.\", on: false },\n];\n\nexport function Settings01({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div className={cn(\"@container/settings w-full\", className)} {...props}>\n      <div className=\"mb-6\">\n        <h1 className=\"ds-title text-foreground\">Settings</h1>\n        <p className=\"ds-subtitle mt-1\">Your profile, how we reach you, and how the app looks.</p>\n      </div>\n\n      <div className=\"grid gap-6 @3xl/settings:grid-cols-[13rem_1fr]\">\n        <nav aria-label=\"Settings sections\" className=\"flex gap-0.5 overflow-x-auto @3xl/settings:flex-col\">\n          {SECTIONS.map(({ id, label, icon: Icon }, i) => (\n            <a\n              key={id}\n              href={`#${id}`}\n              aria-current={i === 0 ? \"page\" : undefined}\n              className=\"ds-nav-item flex h-8 shrink-0 items-center gap-2.5 px-2.5\"\n            >\n              <Icon className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n              {label}\n            </a>\n          ))}\n        </nav>\n\n        <div className=\"flex min-w-0 flex-col gap-5\">\n          <Card id=\"profile\" className=\"gap-5\">\n            <CardHeader>\n              <CardTitle>Profile</CardTitle>\n              <CardDescription>Shown to people in your workspace.</CardDescription>\n            </CardHeader>\n            <CardContent className=\"flex flex-col gap-5\">\n              <div className=\"flex items-center gap-4\">\n                <Avatar className=\"size-12\">\n                  <AvatarFallback>TR</AvatarFallback>\n                </Avatar>\n                <div className=\"flex gap-2\">\n                  <Button variant=\"outline\" size=\"sm\">\n                    Upload photo\n                  </Button>\n                  <Button variant=\"ghost\" size=\"sm\">\n                    Remove\n                  </Button>\n                </div>\n              </div>\n              <div className=\"grid gap-4 @xl/settings:grid-cols-2\">\n                <div className=\"flex flex-col gap-2\">\n                  <Label htmlFor=\"settings-name\">Full name</Label>\n                  <Input id=\"settings-name\" name=\"name\" defaultValue=\"Tomás Ruiz\" autoComplete=\"name\" />\n                </div>\n                <div className=\"flex flex-col gap-2\">\n                  <Label htmlFor=\"settings-email\">Email</Label>\n                  <Input\n                    id=\"settings-email\"\n                    name=\"email\"\n                    type=\"email\"\n                    defaultValue=\"tomas@duebird.app\"\n                    autoComplete=\"email\"\n                  />\n                </div>\n              </div>\n              <div className=\"flex flex-col gap-2\">\n                <Label htmlFor=\"settings-bio\">Bio</Label>\n                <Textarea\n                  id=\"settings-bio\"\n                  name=\"bio\"\n                  rows={3}\n                  defaultValue=\"Design lead. Ask me about the billing flow.\"\n                  aria-describedby=\"settings-bio-hint\"\n                />\n                <p id=\"settings-bio-hint\" className=\"ds-small text-muted-foreground\">\n                  A sentence or two. Markdown is not supported.\n                </p>\n              </div>\n            </CardContent>\n            <CardFooter className=\"justify-end gap-2 border-t pt-5\">\n              <Button variant=\"ghost\" size=\"sm\">\n                Cancel\n              </Button>\n              <Button size=\"sm\">Save profile</Button>\n            </CardFooter>\n          </Card>\n\n          <Card id=\"notifications\" className=\"gap-4\">\n            <CardHeader>\n              <CardTitle>Notifications</CardTitle>\n              <CardDescription>Email only. In-app notifications are always on.</CardDescription>\n            </CardHeader>\n            <CardContent className=\"flex flex-col\">\n              {NOTIFICATIONS.map((n, i) => (\n                <React.Fragment key={n.id}>\n                  {i > 0 && <Separator />}\n                  <div className=\"flex items-center justify-between gap-6 py-3\">\n                    <div className=\"min-w-0\">\n                      <Label htmlFor={`notify-${n.id}`}>{n.label}</Label>\n                      <p className=\"ds-small mt-0.5 text-muted-foreground\">{n.description}</p>\n                    </div>\n                    <Switch id={`notify-${n.id}`} name={`notify-${n.id}`} defaultChecked={n.on} />\n                  </div>\n                </React.Fragment>\n              ))}\n            </CardContent>\n          </Card>\n\n          <Card id=\"appearance\" className=\"gap-4\">\n            <CardHeader>\n              <CardTitle>Density</CardTitle>\n              <CardDescription>How much fits on a screen. Applies to tables and lists.</CardDescription>\n            </CardHeader>\n            <CardContent>\n              <RadioGroup name=\"density\" defaultValue=\"comfortable\" className=\"grid gap-3 @xl/settings:grid-cols-2\">\n                {[\n                  { value: \"comfortable\", label: \"Comfortable\", hint: \"More space between rows.\" },\n                  { value: \"compact\", label: \"Compact\", hint: \"Fits about a third more.\" },\n                ].map((o) => (\n                  <Label\n                    key={o.value}\n                    htmlFor={`density-${o.value}`}\n                    className=\"ds-tile ds-hover flex cursor-pointer items-start gap-3 p-4\"\n                  >\n                    <RadioGroupItem id={`density-${o.value}`} value={o.value} className=\"mt-0.5\" />\n                    <span className=\"min-w-0\">\n                      <span className=\"block\">{o.label}</span>\n                      <span className=\"ds-small mt-0.5 block font-normal text-muted-foreground\">{o.hint}</span>\n                    </span>\n                  </Label>\n                ))}\n              </RadioGroup>\n            </CardContent>\n          </Card>\n\n          <Card id=\"danger-zone\" className=\"gap-4\">\n            <CardHeader>\n              <CardTitle className=\"flex items-center gap-2\">\n                <TriangleAlert className=\"size-4 text-destructive\" aria-hidden=\"true\" />\n                Delete account\n              </CardTitle>\n              <CardDescription>\n                Removes your profile and every document you own. Workspaces you share stay with their\n                other members. This cannot be undone.\n              </CardDescription>\n            </CardHeader>\n            <CardFooter className=\"justify-end\">\n              <Button variant=\"destructive\" size=\"sm\">\n                Delete account\n              </Button>\n            </CardFooter>\n          </Card>\n        </div>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/satori-ui/blocks/settings-01.tsx"
    }
  ],
  "type": "registry:block"
}