# Star icon

https://fieldbook.lizardi.mx/components/icon-star

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

Star icon: A five-point star that swells on a beat and fills solid once the on state marks it a favorite.

## 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 |
| --- | --- | --- | --- |
| size | number | 56 | From 16 to 96; step 4 |
| stroke | number | 2 | From 1 to 3; step 0.25 |
| color | color | #F5C542 | No additional limit in the metadata. |
| animate | select | always | Options: hover, always, once, none |
| state | select | off | Options: off, on |

## Usage notes

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

### Which frameworks are available for Star icon?

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

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

### What accessibility details are visible in Star icon?

The React source for Star icon includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Star icon handle reduced motion?

Star icon reads the motion preference in its React source through useReducedMotion(). 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": "icon-star",
    "framework": "react"
  }
}
```

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

## Related open components

- [Heart icon](https://fieldbook.lizardi.mx/components/icon-heart)
- [Activity icon](https://fieldbook.lizardi.mx/components/icon-activity)
- [Arrow icon](https://fieldbook.lizardi.mx/components/icon-arrow)
- [Badge check icon](https://fieldbook.lizardi.mx/components/icon-badge-check)
- [Blocks icon](https://fieldbook.lizardi.mx/components/icon-blocks)
- [Compass icon](https://fieldbook.lizardi.mx/components/icon-compass)
