App UI kits › Portion › Goals

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.

Goals props

PropTypeDefaultDescription
darkboolean
autoplayboolean
onSave(g: { kcal: number; p: number; c: number; f: number; pace: number; mode: string }) => void

Methods on the ref

Use it in React

import PortionGoals from './PortionGoals';

<PortionGoals />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Portion

Good for: Calorie tracker app UI.