App UI kits › Portion › Food
Slide the grams and every line of the nutrition table rolls; the share of your day fills and the low / medium / high chips follow label rules.
Food 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: serving slider, nutrition table, front-of-pack chips.
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 | ||
food | string | Greek-style yoghurt | Food id from PV_FOODS. Default: Greek-style yoghurt. |
onAdd | (food: string, grams: number) => void |
grams(g: number): voiddestroy(): voidimport PortionFood from './PortionFood';
<PortionFood />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Calorie tracker app UI.