shadcn.io is not affiliated with official shadcn/ui
Quick Actions Sandbox Onboarding Block for React
A document workspace's first four moves as a sandbox panel: four rows with Try and Undo buttons beside a small drawn workspace that adds a document, a teammate, a connected app and a reminder.
Installation
Overview
Let people try the four first moves before they commit to any, with this sandbox for React with Base UI. It is a setup panel of Swiftholm, a document workspace: a list of four actions (create a document, invite a teammate, connect an app, set a reminder), each with a Try button, beside a small drawn workspace with a document list, a stack of people, an app and a reminder. Pressing Try changes the drawing (a document row appears, a second person joins the stack, an app reads Connected, a reminder is set for Friday), the count and a hairline Progress follow, and the same button becomes Undo. A sentence under the drawing is worked out from what you did. On a phone the workspace sits under the list. There is no Shine Button, since every row is its own action.
FAQ
What does each Try do?
Each one changes a part of the drawn workspace and nothing else: a new document row replaces its dashed placeholder, Noor's initials fill the second slot of the people stack, the Slack tile reads Connected, and the reminder row reads “Reminder set for Friday”. Every part keeps its box, so nothing moves when it changes, and Undo puts it back.
Where do the counts and the sentence come from?
From one list of what was tried. The count, the progress bar, the buttons' labels and the sentence under the drawing (“The workspace now has 3 documents, 2 people, Slack connected and a reminder for Friday”) are all worked out from it. The weekday is worked out from a fixed date, not from the clock.
What stays local in the demo, and how do I wire it?
All of it. Nothing is created, sent, connected or scheduled; each press says so in a polite status line (“Invited Noor to the workspace. Nothing was sent.”). In your app call your own create, invite, connect and reminder functions from press, and keep the drawing as the confirmation of what happened.
How does Undo work?
The button's label and its look change with the action's state, but it is the same button in the same place, so focus stays on it after you press. Its accessible name always says the action: “Try: Create a document”, then “Undo: Create a document”.
Related
- Pro
Setup Checklist Onboarding
ChecklistsA contract tool's get-started guide as a setup panel: six steps in a single-open accordion with one button in the open step, a count that follows what you finish, a menu that hides completed steps or the guide, and a pill that opens it again.
- Pro
Guided Walkthrough Onboarding
Welcome and toursA learn-by-doing walkthrough in a framed window: a drawn design-review app beside a docked guide of four tasks, where the control for the current task is ringed and doing it, by click or by key, opens the next.
- Pro
Mission Tiles Onboarding
ChecklistsAn online-shop builder's launch checklist as four framed tiles in a two by two grid, each with a small drawing, a link to the job and a Mark done toggle, and a ring in the header that fills as you go.
- Pro
Setup Progress Onboarding
ChecklistsA teachers' app's setup progress as a whole screen: a big rolling percent over a bar, a line of steps done and minutes to go, one button that finishes the next step, and three foldable bands that list every step as Done, Next up or To do.
- Pro
Product Tour Onboarding
Welcome and toursA four-stop product tour over a drawn analytics dashboard: a coachmark points at the metrics, the segments, the report and the settings one at a time, with the part lit and the rest dimmed, and a Replay tour button that starts the real Tour.
- Pro
Community Join Onboarding
ChecklistsA setup panel of four ruled channel rows, each with a Join button and a fold-out of recent threads, a Join all button and a Save that says how many changes are waiting.