shadcn.io is not affiliated with official shadcn/ui
Video Seekbar Scrubber Features Block for Solid
A features section drawn as a product-tour scrubber: a preview frame in UI over a seekbar with six chapter markers, a tooltip with a miniature of each chapter on hover or focus, and a skip link with one Shine Button.
Installation
Overview
A features section for Solid with Ark UI, drawn as the scrubber of a product-tour builder. A framed figure holds a preview frame drawn in UI (the builder at the chosen chapter: a page, a pin, a bubble and an inspector), the chapter's title and sentence, a seekbar with six evenly spaced chapter markers, and a footer with a "Skip tour" link and the block's one Shine Button. Moving the slider, pressing its arrow keys or choosing a marker jumps to a chapter; hovering or focusing a marker opens a tooltip with a miniature of that chapter's frame, its title and its time. Nothing plays. Below the medium breakpoint the markers give way to a list of the six chapters under the bar. It's built from Slider, Tooltip, Button, Shine Button, Timecode Text and the Guides line kit, with your theme's tokens for every colour.
FAQ
How do I change the chapters and their frames?
Edit CHAPTERS at the top of the file: each has a time in seconds, an id, a title and a sentence. The seekbar, the markers, the tooltips and the list for phones all read from it. Each id picks one of six frame components (PickFrame, HotspotFrame and so on); to add a chapter, draw a frame and add a line to the Frame component that shows it.
How does it work from the keyboard?
Tab reaches the slider, and its arrow keys, Home and End jump one chapter at a time; the slider reads out the chapter's number, title and time. The six markers are buttons after it, each named with its chapter, and Enter or Space jumps to it. Focusing a marker opens its tooltip, and Escape closes it.
Why does the playhead jump instead of sliding?
The slider has six stops, one per chapter, so a drag snaps from chapter to chapter and a click on the track goes to the nearest one. The markers are evenly spaced for that reason, not in proportion to each chapter's length. The time shown is where the chapter starts.
What is in the tooltip?
A miniature of the same drawing that fills the preview, drawn from container units so it scales without a second set of artwork, with the chapter's title and time under it. It only opens from a marker, and the same facts are in the marker's name and in the chapter list below the medium breakpoint, so nothing depends on hovering.