TourCard
TourCard compound component: render step content with header, body, footer sub-components and asChild slot support
The tooltip card that displays step content. Uses compound components for maximum flexibility.
Usage
import {
TourCard,
TourCardHeader,
TourCardContent,
TourCardFooter,
} from '@tour-kit/react';
<TourCard>
<TourCardHeader />
<TourCardContent />
<TourCardFooter />
</TourCard>Props
Prop
Type
Compound Components
TourCardHeader
Displays the step title and close button.
<TourCardHeader>
<TourClose />
</TourCardHeader>TourCardContent
Displays the step content.
<TourCardContent className="text-muted-foreground" />TourCardFooter
Contains navigation and progress.
<TourCardFooter>
<TourProgress />
<TourNavigation />
</TourCardFooter>Complete Example
import {
Tour,
TourStep,
TourCard,
TourCardHeader,
TourCardContent,
TourCardFooter,
TourProgress,
TourNavigation,
TourClose,
TourOverlay,
} from '@tour-kit/react';
function App() {
return (
<Tour id="demo">
<TourStep target="#btn" title="Welcome" content="Hello world!" />
<TourStep target="#nav" title="Navigation" content="Explore here." />
<TourOverlay />
<TourCard className="w-80">
<TourCardHeader>
<TourClose />
</TourCardHeader>
<TourCardContent />
<TourCardFooter>
<TourProgress />
<TourNavigation />
</TourCardFooter>
</TourCard>
<MainApp />
</Tour>
);
}Custom Card Layout
<TourCard className="bg-gradient-to-r from-purple-500 to-pink-500 text-white">
<div className="flex items-start justify-between p-4">
<div>
<TourCardHeader className="text-white font-bold" />
<TourCardContent className="text-white/80 mt-2" />
</div>
<TourClose className="text-white hover:bg-white/20" />
</div>
<TourCardFooter className="border-t border-white/20 p-4">
<TourNavigation
prevLabel="Back"
nextLabel="Continue"
completeLabel="Finish"
/>
</TourCardFooter>
</TourCard>Without Compound Components
For simpler use cases:
<TourCard>
{/* Renders default layout with title, content, and navigation */}
</TourCard>Related
<Tour>— the wrapper<TourCard>must live inside.<TourNavigation>,<TourProgress>,<TourClose>— the slot components composed inside<TourCardFooter>/<TourCardHeader>.<TourOverlay>— the spotlight overlay that sits beneath the card.- Headless
<TourCard>— render-prop variant for full UI control. - Tailwind styling and CSS variables — restyle the default card.
TourCardmigration notes — if you used the pre-compound API.
Ship onboarding, not config.
npm i @tour-kit/core is MIT and free. The Pro packages work unlicensed too — a one-time $99 license removes the production watermark when you ship.
MIT-licensed — no signup, no credit card. Pay once, only when you ship.
TourStep
TourStep component: define individual steps with target selectors, placement, content, and advance-on triggers
TourCard Migration (Refresh → Classic Opt-Out)
Phase 4 of Tour Kit v2 refreshes the default <TourCard> look. This page explains the visual changes, how to pin the v1 ("classic") layout with variant="classic", and how to upgrade a custom theme.