App UI kits › Portion › Plate

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.

Plate props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosPvPhotos
onAdd(lines: [string, number][], kcal: number) => voidCalled with every food line (food id, grams) and the meal's kcal when the meal is added.

Methods on the ref

Use it in React

import PortionPlate from './PortionPlate';

<PortionPlate />

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

More in Portion

Good for: Calorie tracker app UI.