Description
@rc-component/tour is a React component for guided tours, the step-by-step walkthroughs that highlight parts of an interface one after another. It is part of the Ant Design ecosystem. Each step's target is tracked as the page changes, and the component renders its guided panel through a trigger-backed popup, so the panel stays attached to the element it describes. A tour can show a mask over the rest of the page, an arrow pointing at the target, and gaps and radius around the highlighted area. It scrolls the target into view, supports custom placements, and has an inline mode that renders the panel without a popup container. The open and current step can be controlled by your code or left uncontrolled, and the component handles Escape and arrow-key navigation. Its semantic classNames and styles slots let you restyle the panel, mask, footer and actions. The package is written in TypeScript, and its API table covers props such as onChange, onFinish, renderPanel and placement. An online preview is available, and the examples run from a local dumi site.…
Highlights
- Step-by-step guided tours for React interfaces
- Target tracking with a trigger-backed popup
- Masks, arrows, gaps and scroll-into-view
- Keyboard navigation with Escape and arrow keys
- Controlled or uncontrolled open and current state
- Semantic classNames and styles for every part
Ratings & Reviews
No ratings yet
Be the first to rate @rc-component/tour.
People also visit
tour
A component for building onboarding tours. Designed to integrate with shadcn/ui
@rc-component/tour FAQ
What is this component for?
Guided tours in a React app: it highlights a target element and shows a panel describing it, step by step.
Is it part of Ant Design?
It is part of the Ant Design ecosystem and is published as @rc-component/tour.
Can I control which step is showing?
Yes. The open and current props can be controlled from your code, or you can use defaultOpen and defaultCurrent and let the tour manage its own state.
Can I render the panel without a popup?
Yes. Setting getPopupContainer to false turns on inline mode, which renders the panel where the tour is placed in the tree.
Can I change how it looks?
Yes. Classes and styles can be set for the panel, mask, footer and actions, and renderPanel lets you write your own panel.
Where can I see it working?
An online preview is linked from the README, and the examples can be run locally with the dumi site.
What are the best @rc-component/tour alternatives?
Popular alternatives to @rc-component/tour include react-joyride, react-joyride and tour. See all @rc-component/tour alternatives
















