shadcn.io is not affiliated with official shadcn/ui
Goal Exceeded Success Block for React
A page for a revenue goal passed at 108%: a bullet chart with a tick at 100%, three sub-goals each with a signed difference, a group of buttons that raises the next target by 10, 20 or 30 percent, and a Celebrate button that throws confetti.
Installation
Overview
Show a quarter that beat its target with this confirmation page for React with Base UI. It is the page Quotabeam, a revenue-goal tracker, shows when Q3 closes at 108% of plan: the page's side rails and one band frame it, and the heading says how far past the target the quarter landed. One framed panel draws a bullet chart, a wide bar with a tick at 100% and the result counted up by Counting Number, then three sub-goals (new business, expansion, renewals) each with its own bar and a signed difference. A Toggle Group raises the next target by 10, 20 or 30 percent and the new target and its gap are rewritten in one live line. The Shine Button sets the next target and the only other action, an outline Confetti Button, throws a short burst. For sales, goal and OKR tools.
FAQ
What stays in the page, and how do I wire it for real?
Nothing was saved. The amounts are typed in GOALS in cents, and Set the next target only changes the live line to say it was set in this demo. To wire it, build GOALS from your own targets and bookings, save the chosen raise from the button's handler, and rename the quarter and dates.
Where do the percentages come from?
From the amounts. The whole quarter is the sum of the three sub-goals, each percentage is rounded from its own two amounts, and each difference is the booked amount minus the target, signed, so the heading, the chart and the rows always agree. The next target is the old one plus the chosen percent, rounded to a thousand dollars.
How is the chart read without seeing it?
The bars are drawings hidden from assistive technology; every figure is also written as text ("$540,000 of $500,000", "112% of $250,000", "+$30,000 over"). The tick sits at 100% on a scale that runs to 120%, so a result past the target has room to show.
Related
- Pro
A page for the week weekly active users passed 10,000: a greyscale medal, a line of twenty weeks with the crossing marked and described in text, a ring of the way to the next milestone, and a quiet fall of confetti.
- Pro
A page for reaching a new level: the XP a lesson earned counted up, a bar that wraps from a full Level 4 to Level 5 with its 20 XP carry-over, three unlocked perks, and a quiet fall of confetti.
- Pro
Loyalty Tier Success
Plans and limitsA tier-unlocked page for a rewards program: a drawn membership card beside the message, points toward the next tier, and a table of perks for the tier now and the tier next.
- Pro
A panel for a reading streak kept alive: the streak counted up to 14 days, a progress bar to the Weekly Warrior badge, and a five-week table of days read, missed and still to come.
- Pro
Goal Setting Onboarding
One choiceA goal question split in two: four goals as radio rows on one side and the plan the pick makes on the other, three things to set up with an Include switch each and one sentence that counts what stays.
- Pro
Two-Factor Recovery Codes Success
Security and accessA two-step sign-in confirmation page: what was turned on, eight single-use recovery codes in a framed sheet with copy and download, and a Finish setup button that stays dimmed until you tick that you saved them.