Tour
@rockshin/tao-uiGuided steps with target positioning, spotlight masks, custom actions and keyboard navigation.
Each example can be copied and run independently. Use the device control on framed previews to switch between desktop and phone widths.
Masked centered steps and steps with disabledInteraction contain keyboard focus. Steps that allow target interaction are nonmodal and keep the target focusable. Closing restores focus to the launch control.
Examples
Guide users between targets
Targets are read from refs when the tour opens. Next moves to the following target.
Controlled current step
Keep current and open in state. Reset the step before starting the tour again.
A centered introduction
Omit target for an introduction centered in the viewport.
Primary emphasis and a cover
type="primary" changes the panel emphasis. A step can include a cover image or other React content.
Mask, gap and interaction
gap controls the highlighted rectangle. disabledInteraction prevents clicks on the highlighted target.
Custom indicators and actions
Keep the default actions and add a Skip action. Per-step button props customize labels and handlers.
Non-modal guidance
mask:false leaves the page unobscured. keyboard:false disables step navigation and Escape handling; Done still closes this example.
Guide a narrow layout
The panel flips and shifts around its target to stay inside the phone viewport.