{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "type-specimen",
  "title": "Type specimen",
  "description": "Set your own sample text, swap typefaces, and size the lettering against a ruler.",
  "registryDependencies": [
    "https://www.cyberspec.dev/r/recipe-layout.json",
    "https://www.cyberspec.dev/r/micro.json",
    "https://www.cyberspec.dev/r/segmented-control.json",
    "https://www.cyberspec.dev/r/slider.json",
    "https://www.cyberspec.dev/r/text-field.json"
  ],
  "files": [
    {
      "path": "registry/cyber/recipes/type-specimen.tsx",
      "content": "\"use client\"\n\nimport \"./recipe-layout.css\"\nimport { useState } from \"react\"\nimport { Ruler } from \"@/registry/cyber/ui/micro\"\nimport { SegmentedControl } from \"@/registry/cyber/ui/segmented-control\"\nimport { Slider } from \"@/registry/cyber/ui/slider\"\nimport { TextField } from \"@/registry/cyber/ui/text-field\"\n\nexport default function TypeSpecimen() {\n  const [text, setText] = useState(\"Night Shift\")\n  const [face, setFace] = useState(\"Display\")\n  const [size, setSize] = useState(44)\n\n  return (\n    <div className=\"sink-stack\">\n      <div style={{ minHeight: 76, display: \"grid\", alignContent: \"center\", minWidth: 0 }}>\n        <span style={{ color: \"var(--cy-ink-hi)\", fontFamily: face === \"Display\" ? \"var(--cy-font)\" : \"var(--cy-mono)\", fontWeight: 600, fontSize: size, lineHeight: 1.1, overflowWrap: \"anywhere\" }}>{text || \"Aa\"}</span>\n        <Ruler />\n      </div>\n      <TextField label=\"Sample text\" maxLength={32} value={text} onValueChange={setText} />\n      <SegmentedControl label=\"Typeface\" options={[\"Display\", \"Mono\"]} value={face} onValueChange={(next) => next && setFace(next)} fill />\n      <Slider label=\"Type size\" value={size} min={20} max={64} step={2} ticks={11} format={(value) => `${value}px`} onValueChange={setSize} />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/recipes/type-specimen.tsx"
    }
  ],
  "categories": [
    "recipe",
    "studio"
  ],
  "type": "registry:component"
}
