Skip to content

Next Up

A setup checklist card. One job: show a new user the single next thing to do. The current step is open, later steps are collapsed, finished steps sit dimmed at the bottom. A progress ring shows how far along they are.

Dependencies

gsap@gsap/reactclsxtailwind-merge

Interaction

Sequenced single-timeline state transition with GSAP Flip DOM reordering, height morphing, and stroke dash progress updates.

Props

PropTypeDescription
stepsNextUpStep[]Array of setup steps with id, title, description, actionLabel, and optional duration.
titlestringHeading text displayed in the card header.
completedIdsstring[]Controlled array of completed step IDs.
defaultCompletedIdsstring[]Initial uncontrolled completed step IDs.
onStepComplete(id: string) => voidCallback fired when a step action is clicked to complete it.
doneMessagestringMessage displayed when all checklist steps are completed.
classNamestringOptional additional CSS class names for the card container.

MIT License. Free to use in personal and commercial projects. Built for Peel UI.