Skip to content

Walkthrough

Last updated 27 Oct 2026

NbWalkthrough is a guided product tour (coach-marks): it dims the screen, spotlights one element at a time, and shows a popover with a description and controls. Use it to teach first-time users the shape of the application, where the navigation lives, what the views are for, where the common controls sit.

The tour is described by a plain, versioned object and driven by the useWalkthrough composable. The component is a thin renderer over that state machine, which is what lets the same tour be started from a template, a help menu, or a router guard.

Live demo ​

Press Start the tour. Use Tab to move between the controls, and Escape to skip.

Defining a tour in an SFC block ​

An SFC <walkthrough> custom block co-located with the component it describes is appealing DX, but it is not the supported interface. The object and composable API above is the portable one: it works in plain TypeScript, in tests, and in apps that assemble tours at runtime. If co-location is worth it for your codebase, add a Vite plugin that compiles the custom block into exactly the IWalkthrough object shown above, so it stays sugar over the supported API rather than a second implementation with its own behaviour.