shadcn.io is not affiliated with official shadcn/ui
Product Tour Gallery Block for React
One drawn checkout-builder screen framed beside three feature rows, with a Take the tour button that runs a four-step Tour: popovers anchored to regions of the screen, each spotlit.
Installation
Overview
A product tour gallery for React with Base UI, for Cartlark, a checkout builder. A screen drawn in code (the builder's window: a list of blocks at the start, a checkout preview in the middle with its payment methods, a Publish button above) is framed at the start of a split; at the end, under a short header, three feature rows say what the tour shows. The "Take the tour" button runs the Tour: four steps, each a popover anchored to one region of the screen with that region spotlit, with Next, Back and Skip, the arrow keys to move and Escape to stop. At rest the block reads as a screen with three rows, so the tour is an extra. On phones the screen is above the rows. The screen is greys and boxes, not a photograph, and nothing is sent anywhere. Built from Tour, ShineButton and Guides.
FAQ
How does the tour work?
STEPS lists four steps; each names a region of the screen (data-region) as its target, a placement and a title and sentence. The Tour darkens the page, spotlights the region and places a popover by it, with a progress count. Next and Back move between steps, Skip ends the tour, and so do Escape and a click outside. The arrow keys also move between steps, and the last step's button says Done.
How do I tour my own interface?
Give the elements you want to point at a data-region (or pass any function that returns an element as a step's target), write one step per element, and drop the drawn screen. A step with no target is a centred dialog, which suits a welcome or a goodbye.
How does it work with a keyboard?
The button is reached with Tab and starts the tour with Enter or Space. In the tour, Left and Right arrows move between steps, Tab moves among Skip, Back and Next, and Escape closes it. The screen itself is hidden from assistive technology; each step's popover carries the written explanation.
Does the tour follow my theme?
Mostly. The popover and its buttons use the Tour's own styles, so its Next button and the spotlight outline use your primary colour; the rest of the block uses foreground tones only.
Related
- Pro
Scrolling Screenshot Gallery
Stage and thumbnailsA tall landing page drawn in code and shown in a fixed-height browser window that a Scroll preview button plays down, a slider scrubs and an index of five sections jumps.
- Pro
Phone Frame Carousel Gallery
Carousels and slidesFive app screens drawn in phone frames in a ruled band, the chosen one centred at full strength with its neighbours peeking in veiled, steered by a row of five feature tabs under a compact header.
- Pro
Illustrated Steps Gallery
Annotated picturesA four-step picture-framing how-to: Steps as a band of hairline cells, a manual-style line drawing and three instructions for each step, a Mark step done button, a done count and a completed state.
- Pro
Annotated Mockup Pin Tooltips Features
App screensA shipping-ops console drawn in greyscale with six numbered pins that open a popover on click, tap or Enter, and a legend of six rows in shared hairlines that opens the same popovers.
- Pro
Zigzag Screenshot Rows Features
Alternating rowsFour alternating feature rows for a team workspace, each with a badge, a title, three ticks and a framed drawing: a graph of linked docs, a rule builder, a global search and a live document.
- Pro
Stepper Wizard Progression Features
Timelines and stepsA working CSV import wizard in a framed card: Upload, Map columns, Preview and Import, with real Back and Next buttons, selects that match columns to fields and a preview that follows the choices.