{"name":"rule","entry":"component","title":"Rule","description":"A labelled divider with ink or vermilion emphasis and two line weights.","category":"UI","capabilities":[],"needsRemotion":false,"registryDependencies":["@jbm/tokens"],"install":"npx shadcn@latest add @jbm/rule","installName":"rule","page":"https://jbm-ui.bns.studio/c/rule","registryItem":"https://jbm-ui.bns.studio/r/rule.json","sourcePath":"registry/jbm/ui/rule.tsx","files":[{"source":"registry/jbm/ui/rule.tsx","target":"src/jbm/ui/rule.tsx","import":"@/jbm/ui/rule","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/rule.md","json":"https://jbm-ui.bns.studio/catalog/rule.json"},"snippet":"import { Rule } from \"@/jbm/ui/rule\"\n\n<Rule label=\"Una idea a la vez\" accent strong />\n<Rule />\n<Rule label=\"El siguiente capítulo\" strong />","api":[{"export":"Rule","kind":"component","summary":"A full-width separator (role=\"separator\") with an optional uppercase mono label before a flexible line. The line is 1px hairline by default or 3px when strong; its color is the line token, ink when strong, or vermilion when accent. Other div attributes pass through.","props":[{"name":"label","type":"string","required":false,"default":null,"description":"Optional editorial label (Geist Mono, 13px, uppercase) shown before the line; also becomes the separator's aria-label. Dim, or vermilion with `accent`."},{"name":"strong","type":"boolean","required":false,"default":"false","description":"Uses a 3px line instead of 1px, and ink instead of the hairline color when not accented."},{"name":"accent","type":"boolean","required":false,"default":"false","description":"Colors the line and label vermilion. Keep to one accent per composition."}],"passthrough":["React.HTMLAttributes<HTMLDivElement>"]}],"stage":{"mode":"fluid","reason":"Width is 100% of the container. Height is the line weight (1px, or 3px strong) without a label, or one line of 13px mono label text with a label; long labels wrap anywhere and add lines. The line keeps a 24px minimum width."},"examples":[{"title":"Labelled accent rule","code":"import { Rule } from \"@/jbm/ui/rule\"\n\n<Rule label=\"Una idea a la vez\" accent strong />\n<Rule />\n<Rule label=\"El siguiente capítulo\" strong />"}],"qa":["Compare the four looks on cream: plain hairline, strong ink, labelled, and accent strong; the label sits on the line's vertical center with a 16px gap.","Check a long label on a narrow screen: it wraps and the line keeps at least 24px.","Confirm the separator is announced with its label as the accessible name, and without one when unlabelled."],"related":[{"name":"tokens","relation":"installs"}],"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"}}