Sprout goal
A plant that grows with progress. The stem draws upward and leaves unfurl in turn; at 100 the bud opens into a flower.
When to use
- Onboarding, habits and profile completeness.
- Goals people tend rather than finish in one go.
When not to use
- Progress that can go backward often; a plant that shrinks reads as a failure.
- Anything that needs the percentage to be exact at a glance.
Installation
pnpm dlx shadcn@latest add @caliper/sprout-goal
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
SproutGoal
2 props
Also accepts the native props of its root element and a ref.
stageFor
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes meter semantics, with aria-label, aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetext and aria-hidden kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/sprout-goal.mdThe index of every part is at /llms.txt.