Buttons
Counting follow chip
Counting follow chip: An outlined chip that pairs a label with a follower count, rolling the changed digits up through a masked window when latched and back down when released.
Using Counting follow chip
Counting follow chip uses the inline preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accent | color | #FF4D8D | No additional limit in the metadata. |
label | text | Follow | Up to 16 characters |
count | number | 1284 | From 0 to 99999; step 1 |
compact | boolean | true | No additional limit in the metadata. |
duration | number | 450 | From 150 to 1200; step 25 |
Which frameworks are available for Counting follow chip?
Counting follow chip is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Counting follow chip depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Counting follow chip?
The React source for Counting follow chip includes: native elements (button); attributes and handlers (aria-hidden, aria-live, aria-pressed). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Counting follow chip handle reduced motion?
Counting follow chip reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduceMotion ? { opacity: 0 } : { opacity: 0, y: dir === "up" ? "0.3em" : "-0.3em" }; reduceMotion ? { opacity: 0 } : { opacity: 1, y: dir === "up" ? "-0.95em" : "0.95em" }; reduceMotion ? { opacity: 0 } : { opacity: 1, y: dir === "up" ? "0.95em" : "-0.95em" }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.