Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/ux-goal-gradient-progress.md
1---2title: Show Progress Toward Completion3impact: HIGH4tags: ux, goal-gradient, progress, motivation5---67## Show Progress Toward Completion89People accelerate behavior as they approach a goal. Show how close they are to finishing.1011**Incorrect (no sense of progress):**1213```tsx14function Onboarding({ step }) {15return <OnboardingStep step={step} />;16}17```1819**Correct (progress visible):**2021```tsx22function Onboarding({ step, totalSteps }) {23return (24<div>25<ProgressBar value={step} max={totalSteps} />26<span>Step {step} of {totalSteps}</span>27<OnboardingStep step={step} />28</div>29);30}31```3233Reference: [Goal-Gradient Effect](https://lawsofux.com/goal-gradient-effect/)34