Magoo Component UI logo Magoo Component UI
← Catalog

Pet Medication Reminder

medication-reminder-pet molecule experimental

A card for a pet's medication with dosage, schedule, the next dose highlighted and a row of markable dose times.

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

Biscuit

Apoquel

16 mg tablet

Twice daily with food

Next dose Today, 6:00 PM
  • 8:00 AM
  • 6:00 PM
AllGiven

Willow

Amoxicillin

50 mg capsule

Three times daily

Next dose Today, 6:00 PM
  • 7:00 AM
  • 1:00 PM
  • 9:00 PM

Props

NameTypeReq
pet string
medication string ✓
dosage string
schedule string
next_dose string
doses array ✓

Related components

How to use

Layout and the given/outstanding states are pure CSS driven by each dose's data-given attribute, so the card renders correctly with no JavaScript (and in screenshots). behavior.js only wires the "Mark given" buttons: a click sets the dose's data-given to "true" (revealing the check and hiding the button via CSS) and dispatches a bubbling "dose:given" CustomEvent whose detail.time is the dose time. The portable self-init reads the dose time from the button's data-time attribute; no props object is passed.

Use cases

cardlist WCAG AA SEO 25 dir: both ai-generated