Skip to content
PixiKit

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
NameTypeDefaultDescription
stepsDemoCursorStep[]NoneWhere the pointer goes, in order. Without steps it walks the built-in scene.
loopbooleantruePlay again after each run while on screen; off, it plays once and a mouse over it replays it.
speednumber1How fast the pointer glides; 2 is twice as fast.
colorstring"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.
cursorSizenumber24The pointer's size in pixels.
widthnumber520The largest width in pixels; it shrinks with a narrower container.
heightnumber300The built-in scene's height in pixels; it grows when its content needs more.
headingstring"Ship the March release notes?"The question at the top of the built-in scene.
optionsstring[]["Notify the team", "Post to the changelog"]The switches in the built-in scene, pressed in turn.
actionstring"Approve"The button the built-in scene ends on.
onStep(index: number) => voidNoneCalled with each step's index as it lands, and with -1 when a run starts over.
classNamestringNone
childrenReactNodeNoneThe scene the pointer moves over. Replaces the built-in scene.

Related