{"name":"chip","entry":"component","title":"Chip","description":"Inline pill in outline, vermilion accent, or solid ink, with sans or mono type.","category":"UI","capabilities":[],"needsRemotion":false,"registryDependencies":["@jbm/tokens"],"install":"npx shadcn@latest add @jbm/chip","installName":"chip","page":"https://jbm-ui.bns.studio/c/chip","registryItem":"https://jbm-ui.bns.studio/r/chip.json","sourcePath":"registry/jbm/ui/chip.tsx","files":[{"source":"registry/jbm/ui/chip.tsx","target":"src/jbm/ui/chip.tsx","import":"@/jbm/ui/chip","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/chip.md","json":"https://jbm-ui.bns.studio/catalog/chip.json"},"snippet":"import { Chip } from \"@/jbm/ui/chip\"\n\n<Chip>Default</Chip>\n<Chip accent>Accent</Chip>\n<Chip solid>Solid</Chip>\n<Chip mono>Mono</Chip>","api":[{"export":"Chip","kind":"component","summary":"Inline-block, non-wrapping pill with a 2px border, 10×20px padding, and the 14px chip radius. Outline (card fill, line border, ink text) by default; `accent` fills vermilion, `solid` fills ink, both with cream text.","props":[{"name":"children","type":"React.ReactNode","required":true,"default":null,"description":"Chip text; kept on one line (white-space: nowrap)."},{"name":"accent","type":"boolean","required":false,"default":null,"description":"Fills and borders the chip with the vermilion accent. Takes precedence over `solid` when both are set."},{"name":"solid","type":"boolean","required":false,"default":null,"description":"Fills and borders the chip with ink."},{"name":"mono","type":"boolean","required":false,"default":null,"description":"Switches the face from Geist sans to Geist Mono."},{"name":"size","type":"number","required":false,"default":"26","description":"Font size in stage pixels."},{"name":"style","type":"React.CSSProperties","required":false,"default":null,"description":"Inline styles merged last."}],"passthrough":[]}],"stage":{"mode":"fluid","reason":"Width follows the text. Height is 26px type at the font's normal line height (not set explicitly) plus 20px vertical padding and 4px of border; `size` scales the type only, not the padding."},"examples":[{"title":"Variants","code":"import { Chip } from \"@/jbm/ui/chip\"\n\n<Chip>Default</Chip>\n<Chip accent>Accent</Chip>\n<Chip solid>Solid</Chip>\n<Chip mono>Mono</Chip>"},{"title":"Staggered row in a video","code":"import { Chip } from \"@/jbm/ui/chip\"\nimport { Stagger } from \"@/jbm/motion/pop\" // install @jbm/pop separately\n\n<Stagger at={0.2} step={0.35}>\n  {[\"Idea\", \"Datos\"].map((text) => <Chip key={text}>{text}</Chip>)}\n</Stagger>"}],"qa":["Compare default, accent, solid, and mono side by side: outline on card fill, cream text on vermilion and ink.","Check that long chip text does not overflow the safe area, because chips never wrap; wrap the row container instead.","Keep at most one accent chip per composition."],"related":[{"name":"tokens","relation":"installs"},{"name":"scene-spec","relation":"installed-by"},{"name":"pop","relation":"example-import"}],"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"}}