App UI kits › Portion › Plate
Every food on the real plate is outlined; drag the handle on its edge and grams follow the outline’s area while kcal and the day’s macros roll.
Plate 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: photo outline engine, mask focus, area to grams.
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 | ||
photos | PvPhotos | ||
onAdd | (lines: [string, number][], kcal: number) => void | Called with every food line (food id, grams) and the meal's kcal when the meal is added. |
select(id: string | null): voidsetGrams(id: string, grams: number): voidextra(id: string, on: boolean): voiddestroy(): voidimport PortionPlate from './PortionPlate';
<PortionPlate />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Calorie tracker app UI.