App UI kits › Portion › Log food

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.

Log food props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosPvPhotos
onDone(meal: string, lines: [string, number][]) => void
onMethod(m: 'photo' | 'barcode' | 'recipe' | 'quick') => void

Methods on the ref

Use it in React

import PortionLog from './PortionLog';

<PortionLog />

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

More in Portion

Good for: Calorie tracker app UI.