- Preview
- An animated glass of water with the logged amount, daily goal, remaining volume and quick add/remove controls.
- Inputs
- Set initialAmount for local use or supply amount as the confirmed total. Use whole millilitres for amount, goal and glassSize, with positive goal and glassSize. Set period to the host’s reporting label.
- Source options
- Map a personal log for the selected day. Pass amount: null when unavailable.
- Actions
- Add a glass or remove up to a glass. For a connected total, onAmountChange requests the next value. The controls wait for a refreshed amount, and a rejected write can be retried.
- Integration requirements
- The glass and progress bar are full once the confirmed volume reaches the goal. The total still shows the recorded volume after reaching the goal.