App UI kits › Portion › Goals
Pick a pace and the daily target rolls from the profile’s energy use; a pace below the safe floor is capped and says why; drag dividers to split macros.
Goals is a screen from Portion, an app ui kit with 11 screens: A calorie tracker where you resize the food on your real plate. Price: $5 for the whole pack.
Built with: worked-out target, safe floor, split dividers.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
onSave | (g: { kcal: number; p: number; c: number; f: number; pace: number; mode: string }) => void |
mode(m: 'lose' | 'keep' | 'gain'): voidpace(kgPerWeek: number): voidsplit(p: number, c: number): voiddestroy(): voidimport PortionGoals from './PortionGoals';
<PortionGoals />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Calorie tracker app UI.