Magoo Component UI logo Magoo Component UI
← Catalog

Water Intake Tracker

water-intake molecule experimental

A hydration card showing cups consumed, current vs goal millilitres, a progress bar, and an add-serving button.

Also in: Cards

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default

Water intake

1500 / 2500 ml

GoalReached

Water intake

2500 / 2500 ml

Props

NameTypeReq
label string
current_ml integer ✓
goal_ml integer ✓
pct integer ✓
cups array ✓
step integer

Related components

How to use

Layout is render-driven: cups (filled/empty) and pct are precomputed by the caller since the directive language cannot divide. behavior.js reads data-step from the root and, on the add button click, dispatches a bubbling water:add CustomEvent with detail { amount }. Screenshots do not run behavior, so the static render reflects the passed props exactly.

Use cases

statcard WCAG AA SEO 25 dir: both ai-generated