A shadcn-style tour component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/tour

Usage

import * as Tour from "@/components/ui/tour"

Read exported parts in src/components/ui/tour.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

Mixed Types

Product analytics card

Progress Bar

Step 1
Step 2
Step 3
Step 4

Skip

Collections
Views
Shortcuts

Keyboard Navigation

Use Right Arrow, Left Arrow, and Escape while the tour is open.

Right
Left
Escape

Events

Trigger 1
Trigger 2
Trigger 3

Event log

Start the tour to see lifecycle events.

Wait For Click

Last action: none

Wait For Input

Wait For Element

Inbox
Drafts

Async

Profile summary card

API reference

This component mirrors the upstream Ark UI primitive. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

TourPopup

PropTypeDescription
arrowClassName?stringClass on the arrow element.
arrowTipClassName?stringClass on the arrow tip.
disablePortal?booleanRenders content in-place instead of portaled.
positionerClassName?stringExtra class on the positioner wrapper.
showArrow?booleanToggles the arrow (default true).

TourFrame

PropTypeDescription
showProgressBar?booleanRenders a bottom progress bar.

See the ARK UI documentation for the full API.