{"name":"index-row","entry":"component","title":"IndexRow","description":"A numbered record with optional evidence, linked title, and active state.","category":"UI","capabilities":[],"needsRemotion":false,"registryDependencies":["@jbm/tokens","@jbm/action-link"],"install":"npx shadcn@latest add @jbm/index-row","installName":"index-row","page":"https://jbm-ui.bns.studio/c/index-row","registryItem":"https://jbm-ui.bns.studio/r/index-row.json","sourcePath":"registry/jbm/ui/index-row.tsx","files":[{"source":"registry/jbm/ui/index-row.tsx","target":"src/jbm/ui/index-row.tsx","import":"@/jbm/ui/index-row","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/index-row.md","json":"https://jbm-ui.bns.studio/catalog/index-row.json"},"snippet":"import { IndexRow } from \"@/jbm/ui/index-row\"\n\n<IndexRow index=\"01\" title=\"El contexto\" evidence=\"Empieza con una pregunta.\" href=\"/contexto\" active />\n<IndexRow index=\"02\" title=\"La evidencia\" href=\"/evidencia\" />\n<IndexRow index=\"03\" title=\"Una idea útil\" />","api":[{"export":"IndexRow","kind":"component","summary":"One row of a numbered index: a mono index, a 22px title (an ActionLink when `href` is set, otherwise bold text), and optional dim evidence below, with a hairline bottom border. Only the title is linked so evidence may contain its own links. Other div attributes pass through.","props":[{"name":"index","type":"React.ReactNode","required":true,"default":null,"description":"The row marker, such as \"01\"; Geist Mono 14px, dim or vermilion when active."},{"name":"title","type":"React.ReactNode","required":true,"default":null,"description":"The record's title, 22px. Rendered through ActionLink (with its arrow) when `href` is set."},{"name":"evidence","type":"React.ReactNode","required":false,"default":null,"description":"Optional supporting text below the title, 15px dim; may contain links or other nodes."},{"name":"href","type":"string","required":false,"default":null,"description":"Links the title. Without it the title is plain text."},{"name":"active","type":"boolean","required":false,"default":"false","description":"Marks the current row: index and title turn vermilion, and a linked title gets aria-current=\"step\"."}],"passthrough":["Omit< React.HTMLAttributes<HTMLDivElement>, \"title\" >"]}],"stage":{"mode":"fluid","reason":"Width fills the container. Height is 22px padding above and below plus the title (22px × 1.25–1.4 per line) and, when present, 8px + evidence lines at 15px × 1.55, plus the 1px bottom border. Long titles and evidence wrap and add lines."},"examples":[{"title":"Numbered index with an active row","code":"import { IndexRow } from \"@/jbm/ui/index-row\"\n\n<IndexRow index=\"01\" title=\"El contexto\" evidence=\"Empieza con una pregunta.\" href=\"/contexto\" active />\n<IndexRow index=\"02\" title=\"La evidencia\" href=\"/evidencia\" />\n<IndexRow index=\"03\" title=\"Una idea útil\" />"}],"qa":["Compare active, linked, and unlinked rows: only the active row uses vermilion, linked titles show the ActionLink underline and arrow, and plain titles are bold ink.","Hover and Tab to linked titles; the focus indicator is visible and aria-current=\"step\" is present only on the active row.","Check a narrow screen with long titles and evidence: text wraps beside the index, which stays baseline-aligned with the title's first line."],"related":[{"name":"tokens","relation":"installs"},{"name":"action-link","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"}}