Skip to content
Menu

Buttons

Star count button

Star count button: A repository star button whose total rolls up column by column into view and throws a short burst of tiny stars when pressed.

Using Star count button

Star count button 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.

ControlTypeDefaultPreview limits
accentColorcolor#F5C542No additional limit in the metadata.
countnumber4820From 0 to 999999; step 1
rollDurationnumber900From 200 to 2000; step 50
skinselectoutlineOptions: solid, outline, ghost
burstbooleantrueNo additional limit in the metadata.
Which frameworks are available for Star count button?

Star count button 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 Star count button depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

What accessibility details are visible in Star count button?

The React source for Star count button includes: attributes and handlers (aria-checked, aria-hidden, aria-label, aria-live); explicit roles (status, switch). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Star count button handle reduced motion?

Star count button reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components