# Star count button

https://fieldbook.lizardi.mx/components/star-count-button

Category: Buttons
![Still of the Star count button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/star-count-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/star-count-button-d2b25fda9a.mp4 (5 s, silent)

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.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| accentColor | color | #F5C542 | No additional limit in the metadata. |
| count | number | 4820 | From 0 to 999999; step 1 |
| rollDuration | number | 900 | From 200 to 2000; step 50 |
| skin | select | outline | Options: solid, outline, ghost |
| burst | boolean | true | No additional limit in the metadata. |

## Usage notes

Star count button uses the inline preview frame with a light/dark theme setting.

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "star-count-button",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Captioned Like Button](https://fieldbook.lizardi.mx/components/captioned-like-button)
- [Collapsing share button](https://fieldbook.lizardi.mx/components/collapsing-share-button)
- [Counting follow chip](https://fieldbook.lizardi.mx/components/counting-follow-chip)
- [Key Turn Chip](https://fieldbook.lizardi.mx/components/key-turn-chip)
- [Launch orbit button](https://fieldbook.lizardi.mx/components/launch-orbit-button)
- [Press plate toggle](https://fieldbook.lizardi.mx/components/press-plate-toggle)
