{"name":"document","entry":"component","title":"Document","description":"Folded paper illustration with optional label and accent heading.","category":"UI Bits","capabilities":[],"needsRemotion":false,"registryDependencies":["@jbm/tokens"],"install":"npx shadcn@latest add @jbm/document","installName":"document","page":"https://jbm-ui.bns.studio/c/document","registryItem":"https://jbm-ui.bns.studio/r/document.json","sourcePath":"registry/jbm/ui/document.tsx","files":[{"source":"registry/jbm/ui/document.tsx","target":"src/jbm/ui/document.tsx","import":"@/jbm/ui/document","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/document.md","json":"https://jbm-ui.bns.studio/catalog/document.json"},"snippet":"import { Document } from \"@/jbm/ui/document\"\n\n<Document label=\"idea.md\" accent style={{ width: 180 }} />","api":[{"export":"Document","kind":"component","summary":"Static SVG sheet with a folded top-right corner, a heading stroke, three grey text lines, and an optional mono label. Without a label it is decorative (aria-hidden); with one it is an image named by the label.","props":[{"name":"label","type":"string","required":false,"default":null,"description":"Mono filename printed near the bottom edge; also the accessible name. Truncated to 15 characters plus an ellipsis when longer than 16. Omit for a decorative sheet."},{"name":"accent","type":"boolean","required":false,"default":"false","description":"Draws the heading stroke in vermilion instead of ink."}],"passthrough":["React.SVGProps<SVGSVGElement>"]}],"stage":{"mode":"declared","landscape":{"width":160,"height":200},"vertical":{"width":160,"height":200},"basis":"Fixed 160×200 viewBox rendered at width 160 and height 200 stage pixels. The style sets height auto and maxWidth 100%, so set style.width to scale it with its 4:5 proportions; other SVG attributes pass through."},"examples":[{"title":"Labelled accent document","code":"import { Document } from \"@/jbm/ui/document\"\n\n<Document label=\"idea.md\" accent style={{ width: 180 }} />"},{"title":"Decorative pair, one tilted","code":"import { Document } from \"@/jbm/ui/document\"\n\n<div style={{ display: \"flex\", gap: 24 }}>\n  <Document style={{ width: \"42%\" }} />\n  <Document label=\"borrador.md\" style={{ width: \"42%\", transform: \"rotate(4deg)\" }} />\n</div>"}],"qa":["Compare accent and ink headings: only the heading stroke changes color.","Try a label longer than 16 characters: it ends with an ellipsis and stays inside the sheet.","Scale with style.width at narrow widths: the fold and ink edge (stroke.outline) keep their 160:200 proportions.","Without a label the SVG is aria-hidden; with one it exposes role img and the label as its name."],"related":[{"name":"tokens","relation":"installs"}],"family":"Paper & writing","docs":[{"title":"Visual primitives guide","url":"https://jbm-ui.bns.studio/docs/visual-primitives.md"}],"setup":{"namespace":"@jbm","componentsJson":{"registries":{"@jbm":"https://jbm-ui.bns.studio/r/{name}.json"}},"command":"npx shadcn@latest add @jbm/<name>","target":"src/jbm/","importAlias":"@/jbm/…","tsconfigPaths":{"@/*":["./src/*"]}},"rules":["Install through the @jbm namespace: each registry item JSON (/r/<name>.json) carries its files' contents and each guide is served at /docs/<slug>.md, so agents never need the source repository (it is public on GitHub for people browsing the code).","Files install to src/jbm/ and import as @/jbm/…, which needs the @/* → ./src/* path alias in tsconfig.json.","Items marked needsRemotion require the remotion package and must render inside a Remotion composition or Player; every other item works in any React page.","Use one vermilion accent per composition; accent2 is for annotations only and soft is for dark surfaces only.","Stages are 1920×1080 landscape and 1080×1920 vertical with declared safe areas; each item's stage field declares its size in stage pixels, and scenes compose from YAML-shaped specs with @jbm/scene-spec."],"links":{"catalog":"https://jbm-ui.bns.studio/catalog.json","llms":"https://jbm-ui.bns.studio/llms.txt"}}