Skip to content
caliper ui pro docs

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.

Pro

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

terminal
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.

PropTypeDefaultDescription
value *number—Progress to the goal, from 0 to 100.
labelstring"Progress"Names the goal, e.g. "Onboarding".

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.md

The index of every part is at /llms.txt.

More in Changing values