Demo Cursor
A pretend pointer that glides between targets in a scene and presses them, with the useStory timeline hook that plays a product demo once it is on screen.
pixikit.com/docs/components/demo-cursor
Customize
Loop
Speed1.00x
Color
Cursor
Cursor size24px
Width520px
Height300px
Props
14| Name | Type | Default | Description |
|---|---|---|---|
steps | DemoCursorStep[] | None | Where the pointer goes, in order. Without steps it walks the built-in scene. |
loop | boolean | true | Play again after each run while on screen; off, it plays once and a mouse over it replays it. |
speed | number | 1 | How fast the pointer glides; 2 is twice as fast. |
color | string | "currentColor" | The pointer's fill. `currentColor` follows the text colour. |
cursor | "arrow" | "hand" | "dot" | "arrow" | The pointer's shape: an arrow, a pointing hand or a dot. |
cursorSize | number | 24 | The pointer's size in pixels. |
width | number | 520 | The largest width in pixels; it shrinks with a narrower container. |
height | number | 300 | The built-in scene's height in pixels; it grows when its content needs more. |
heading | string | "Ship the March release notes?" | The question at the top of the built-in scene. |
options | string[] | ["Notify the team", "Post to the changelog"] | The switches in the built-in scene, pressed in turn. |
action | string | "Approve" | The button the built-in scene ends on. |
onStep | (index: number) => void | None | Called with each step's index as it lands, and with -1 when a run starts over. |
className | string | None | |
children | ReactNode | None | The scene the pointer moves over. Replaces the built-in scene. |