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.