Meal log pairing kcal with a three-segment macro bar for carbs, protein, and fat grams.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Health9 } from "@/components/beste/piece/health9";
<Health9
meal="Lunch · Grilled chicken bowl"
kcal={620}
macros={[
{
"label": "Carbs",
"grams": 68,
"class": "bg-sky-500",
"text": "text-sky-500"
},
{
"label": "Protein",
"grams": 34,
"class": "bg-emerald-500",
"text": "text-emerald-500"
},
{
"label": "Fat",
"grams": 22,
"class": "bg-amber-500",
"text": "text-amber-500"
}
]}
/>