{"name":"clipped-note","entry":"component","title":"ClippedNote","description":"Paper note with an optional paper clip, rotation, and paper, accent, or ink stock.","category":"UI Bits","capabilities":["controls"],"needsRemotion":false,"registryDependencies":["@jbm/tokens","@jbm/paper","@jbm/paper-clip"],"install":"npx shadcn@latest add @jbm/clipped-note","installName":"clipped-note","page":"https://jbm-ui.bns.studio/c/clipped-note","registryItem":"https://jbm-ui.bns.studio/r/clipped-note.json","sourcePath":"registry/jbm/ui/clipped-note.tsx","files":[{"source":"registry/jbm/ui/clipped-note.tsx","target":"src/jbm/ui/clipped-note.tsx","import":"@/jbm/ui/clipped-note","type":"registry:ui"}],"endpoints":{"markdown":"https://jbm-ui.bns.studio/catalog/clipped-note.md","json":"https://jbm-ui.bns.studio/catalog/clipped-note.json"},"snippet":"import { ClippedNote } from \"@/jbm/ui/clipped-note\"\n\n<ClippedNote clip rotate={-3}>Revisar el resultado.</ClippedNote>","api":[{"export":"ClippedNote","kind":"component","summary":"Composes Paper (10px radius, 18px padding, 220px wide up to 100% of its container) and PaperClip. Children render in bold sans with ink matched to the stock and wrap anywhere.","props":[{"name":"children","type":"ReactNode","required":true,"default":null,"description":"Note content."},{"name":"clip","type":"boolean","required":false,"default":"true","description":"Shows the paper clip across the top edge at left 18px, top −24px. The clip extends above the note's box."},{"name":"tone","type":"PaperTone","required":false,"default":"\"paper\"","description":"Paper stock: `paper` (card with ink text), `accent` (vermilion), or `ink`; text switches to cream on accent and ink."},{"name":"rotate","type":"number","required":false,"default":"0","description":"Rotation of the whole note, clip included, in degrees."},{"name":"style","type":"CSSProperties","required":false,"default":null,"description":"Inline styles merged last onto the Paper, e.g. width, padding, or font size."}],"passthrough":[]}],"stage":{"mode":"fluid","reason":"Width is 220px (maxWidth 100%) unless style overrides it; height follows the wrapped children plus 36px padding and a 4px border. The clip adds 24px above the top edge, and rotation enlarges the visual footprint."},"examples":[{"title":"Rotated clipped note","code":"import { ClippedNote } from \"@/jbm/ui/clipped-note\"\n\n<ClippedNote clip rotate={-3}>Revisar el resultado.</ClippedNote>"},{"title":"Small note attached to a paper tape","code":"import { ClippedNote } from \"@/jbm/ui/clipped-note\"\nimport { PaperTape } from \"@/jbm/ui/paper-tape\" // install @jbm/paper-tape separately\n\n<PaperTape length={700} window={280} attachments={[{ id: \"note\", at: 650,\n  content: <ClippedNote style={{ width: 108, fontSize: 12, padding: 10 }}>12 de 30 rutas</ClippedNote> }]} />"}],"qa":["Toggle Paper clip: the note does not shift, and the clip overlaps the top edge rather than floating above it.","Toggle Accent paper and try ink: text stays legible on each stock.","Drag Note rotation to both extremes: the clip rotates with the note and nothing is clipped by the preview.","Check a long unbroken word wraps inside the 220px width on narrow screens."],"related":[{"name":"tokens","relation":"installs"},{"name":"paper","relation":"installs"},{"name":"paper-clip","relation":"installs"},{"name":"paper-tape","relation":"example-import"}],"family":"Tape, clips & marks","docs":[{"title":"Paper and filing illustrations guide","url":"https://jbm-ui.bns.studio/docs/design-video-components.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"}}