{"name":"callout","entry":"component","title":"Callout","description":"Short sentence in a vermilion, ink, or outlined note pill.","category":"UI","capabilities":[],"needsRemotion":false,"registryDependencies":["@jbm/tokens"],"install":"npx shadcn@latest add @jbm/callout","installName":"callout","page":"https://jbm-ui.bns.studio/c/callout","registryItem":"https://jbm-ui.bns.studio/r/callout.json","sourcePath":"registry/jbm/ui/callout.tsx","files":[{"source":"registry/jbm/ui/callout.tsx","target":"src/jbm/ui/callout.tsx","import":"@/jbm/ui/callout","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/callout.md","json":"https://jbm-ui.bns.studio/catalog/callout.json"},"snippet":"import { Callout } from \"@/jbm/ui/callout\"\n\n<Callout>Primero, el problema.</Callout>\n<Callout variant=\"ink\">Luego, la idea.</Callout>\n<Callout variant=\"note\">Al final, cómo se usa.</Callout>","api":[{"export":"Callout","kind":"component","summary":"Inline-block pill with line-height 1.3 and a 2px border. `accent`: vermilion fill, cream sans, 14×22px padding, 16px radius. `ink`: ink fill, cream mono, 8×14px padding, 10px radius. `note`: transparent with an accent2 border and mono text, 10×18px padding, 12px radius, for footnotes.","props":[{"name":"children","type":"React.ReactNode","required":true,"default":null,"description":"The sentence; wraps at maxWidth when set."},{"name":"variant","type":"\"accent\" | \"ink\" | \"note\"","required":false,"default":"\"accent\"","description":"\"accent\", \"ink\", or \"note\". Changes fill, face, padding, and radius together."},{"name":"size","type":"number","required":false,"default":"30","description":"Font size in stage pixels."},{"name":"maxWidth","type":"number","required":false,"default":null,"description":"Maximum width in stage pixels; unset lets the pill grow with its text up to the container width."},{"name":"style","type":"React.CSSProperties","required":false,"default":null,"description":"Inline styles merged after the variant."}],"passthrough":[]}],"stage":{"mode":"declared","landscape":{"width":"auto","height":71},"vertical":{"width":"auto","height":71},"basis":"One line of the default accent variant: 30 × 1.3 = 39 plus 28px vertical padding and 4px border = 71 stage px. Ink is 59 and note is 63 at the same size; each wrapped line adds size × 1.3. Width follows the text."},"examples":[{"title":"Three variants","code":"import { Callout } from \"@/jbm/ui/callout\"\n\n<Callout>Primero, el problema.</Callout>\n<Callout variant=\"ink\">Luego, la idea.</Callout>\n<Callout variant=\"note\">Al final, cómo se usa.</Callout>"},{"title":"Wrapped in a column","code":"import { Callout } from \"@/jbm/ui/callout\"\n\n<Callout size={34} maxWidth={936}>Una idea clara vale más que diez diapositivas.</Callout>"}],"qa":["Compare accent, ink, and note on cream; note text uses accent2 and must stay legible at small sizes.","Wrap a long sentence with maxWidth and check line spacing and padding stay even.","Only one accent-filled callout per composition, and it should not compete with another accent element."],"related":[{"name":"tokens","relation":"installs"},{"name":"scene-spec","relation":"installed-by"}],"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"}}