Magoo Component UI logo Magoo Component UI
← Catalog

Rep Counter

rep-counter atom experimental

A tap-to-count card with a big count display, a large +1 button, and a reset, with an optional target cap.

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

Push-ups

12 / 20

NoTarget

Pull-ups

0 / 20

Props

NameTypeReq
count string
label string
target string

Related components

How to use

behavior.js reads the starting value from the rendered count text and an optional cap from data-target (set from the target prop). The +1 button increments up to the target when present; Reset returns to zero. Each change dispatches a bubbling rep:count CustomEvent (detail { count }). Screenshots do not run behavior, so the static render shows the count prop as authored.

Use cases

controlcard WCAG AA SEO 15 dir: both ai-generated