--- title: "Whiteboard Ink" description: "A whiteboard sketch draws one measured stroke at a time while a pen nib follows the active tip. Preset sketches (bulb, flow, rocket) or your own multi-stroke SVG paths via the strokes slot; a path marked data-ink=accent rides the accent token." --- import { InstallCommand } from "/snippets/install-command.jsx"; import { VariablesExplorer } from "/snippets/variables-explorer.jsx"; ```html whiteboard-ink.html Whiteboard Ink ``` ## Install That writes one file: `compositions/components/whiteboard-ink.html`. ## Paste it into your composition Open `compositions/components/whiteboard-ink.html` and copy what is inside into your own composition. A component has no size or duration of its own. It takes both from the composition you paste it into. ## Variables Every one of these has a default, so the piece works untouched. Set the ones you want to change on the element: | Variable | Default | Accepts | What it does | | --- | --- | --- | --- | | `sketch` | `bulb` | `bulb`, `flow`, `rocket` | Authored preset sketch to draw. Ignored when the strokes slot holds custom paths. | | `caption` | `Draw the idea` | string | Short line shown after the sketch completes. | | `pen` | `show` | `show`, `hide` | Show or hide the pen nib actor. | | `accent` | `green` | `green`, `blue`, `violet` | Color used by strokes marked data-ink=accent (one highlight stroke in each preset). | | `exit` | `none` | `none`, `fade`, `up` | How the completed lockup leaves. none holds the final frame. | Set them with `data-variable-values` on the element that mounts it. These are the defaults, so this behaves exactly like the preview above until you change one: ```html wrap
``` ## Source ```html Whiteboard Ink ``` {/* hf:generated-footer */} Tagged `motion-primitive` `intro` `reveal` `svg` `whiteboard` `line-draw` `slot`. ## Related topics - [Browse the complete Catalog](/catalog) - [Add assets and Catalog items in Studio](/studio/assets-and-blocks) - [Build a richer composition](/go-further)