App UI kits › Portion › Log food
The meal is picked by the time of day; search highlights what matched and each food flies into a tray whose total rolls.
Log 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: fly to tray, match highlight, meal by time.
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 | ||
onDone | (meal: string, lines: [string, number][]) => void | ||
onMethod | (m: 'photo' | 'barcode' | 'recipe' | 'quick') => void |
search(q: string): voidadd(id: string): voidmeal(m: string): voidclear(): voiddestroy(): voidimport PortionLog from './PortionLog';
<PortionLog />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Calorie tracker app UI.