{"name":"ticket","entry":"component","title":"Ticket","description":"Admission-style surface with a colored header, flexible body, and perforated footer stub.","category":"UI","capabilities":["controls"],"needsRemotion":false,"registryDependencies":["@jbm/tokens"],"install":"npx shadcn@latest add @jbm/ticket","installName":"ticket","page":"https://jbm-ui.bns.studio/c/ticket","registryItem":"https://jbm-ui.bns.studio/r/ticket.json","sourcePath":"registry/jbm/ui/ticket.tsx","files":[{"source":"registry/jbm/ui/ticket.tsx","target":"src/jbm/ui/ticket.tsx","import":"@/jbm/ui/ticket","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/ticket.md","json":"https://jbm-ui.bns.studio/catalog/ticket.json"},"snippet":"import { Ticket } from \"@/jbm/ui/ticket\"\n\n<Ticket header=\"ADMIT ONE · OCT 2026\" stub=\"Tu nombre · Tu comunidad\" tone=\"accent\">\n  <h3>Un lugar para crear.</h3>\n  <p>Trae tu curiosidad.</p>\n</Ticket>","api":[{"export":"Ticket","kind":"component","summary":"A card-stock surface (shared card border, shadow, and radius tokens) with an optional ink or vermilion mono header band, a 24px-padded body for arbitrary children, and an optional stub below a dashed perforation line. Content semantics belong to the caller; div attributes pass through.","props":[{"name":"header","type":"React.ReactNode","required":false,"default":null,"description":"Optional header band content (12px mono, cream text). Omit (null/undefined) to hide the band."},{"name":"stub","type":"React.ReactNode","required":false,"default":null,"description":"Optional footer stub content (12px dim mono) below a dashed line. Omit to hide."},{"name":"tone","type":"\"ink\" | \"accent\"","required":false,"default":"\"ink\"","description":"Header band fill: \"ink\" or the vermilion \"accent\"."}],"passthrough":["React.HTMLAttributes<HTMLDivElement>"]}],"stage":{"mode":"fluid","reason":"Width fills the container; height follows content: header band (14px padding × 2 + one 12px mono line), body (24px padding × 2 + children), and stub (16px padding × 2 + 12px × 1.5 lines), plus the card border. Set style.width for a fixed ticket."},"examples":[{"title":"Admission ticket","code":"import { Ticket } from \"@/jbm/ui/ticket\"\n\n<Ticket header=\"ADMIT ONE · OCT 2026\" stub=\"Tu nombre · Tu comunidad\" tone=\"accent\">\n  <h3>Un lugar para crear.</h3>\n  <p>Trae tu curiosidad.</p>\n</Ticket>"},{"title":"Work order with the same slots","code":"import { Ticket } from \"@/jbm/ui/ticket\"\n\n<Ticket header=\"orden de trabajo\" stub={<>Hecho es:<br />Las pruebas pasan.</>}>\n  <h3>Migrar los pagos</h3>\n  <p>Del cliente anterior al nuevo.</p>\n</Ticket>"}],"qa":["Toggle the Vermilion header control: the band switches between accent and ink while body and stub are unchanged.","Check the rounded corners clip the header band and the dashed perforation spans the full width above the stub.","Remove header or stub and confirm no empty band or dashed line remains.","Check long content on a narrow screen wraps inside the ticket (overflowWrap anywhere) and the surface border and shadow match Card."],"related":[{"name":"tokens","relation":"installs"}],"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"}}