Export size24px

 

App.jsx
import { Star } from "fmicon-react";

<Star size={24} variant="outline" />

Props

PropTypeDefaultDescription
sizenumber | string24Width and height in pixels
variant"linear" | "bold" | …linearAny of the 8 styles, plus glass-light for light backgrounds
colorstringcurrentColorAny CSS colour; inherits the text colour by default
strokeWidthnumber1.5Line weight for linear, twotone, broken and duotone
...propsSVG attributes–className, aria-label, onClick and the rest

What is the Star Icon?

The star icon is a five-pointed star, and it does two jobs in interfaces: rating something on a scale and marking an item as important or a favourite. Rows of stars show review scores, while a single star toggle pins an email, file or contact to the top of a list.

Stars have meant excellence since hotel and restaurant guides started grading with them in the early twentieth century, so a row of five works as a rating icon almost everywhere. A single star means starred or important, a habit popularised by email clients. It differs from the heart, which carries affection, and from the bookmark, which simply saves a place to come back to. Half-filled stars show average scores between whole numbers.

When to Use the Star Icon

  • Product review summary: a row of five stars with the average score and the number of reviews beside it.
  • Email list row: a toggle that stars a message so it appears in the starred folder.
  • Code repository page: a star button that shows interest in a project and counts its total stars.
  • App feedback prompt: a tappable five-star scale asking customers to rate their latest order.

The Star Icon in Outline Style

Outline icons trace the same shapes as linear, but each line is a filled contour instead of a stroke. The weight stays fixed at every size, which makes them predictable in design tools and exports.

Best for: design files, print and exports where strokes might get scaled by accident.

The same icon also comes in linear, bold, bulk, twotone, broken, glass and duotone. See every icon in this look on the free outline icons page.

How to Use the Star Icon

  1. Customise it. Outline is a filled style, so pick a size and colour on the left; stroke weight doesn't apply.
  2. Copy or download. Copy the SVG, or download SVG, PNG or WebP at any size from 16 to 512 px.
  3. Drop it into code. Choose React, React Native, Vue, Svelte, Angular or Flutter above and copy the ready-made StarIcon component.
  4. Label it. If the icon is the only thing in a button, give it a name for screen readers: aria-label="Star this item". If text sits next to it, use aria-hidden="true" instead.

Design Tips for the Star Icon

  • For rating inputs, make each star at least 32 pixels wide with spacing, because tapping the fourth star of a small row is fiddly.
  • Render half stars with a clipped filled star over an outline star rather than a separate glyph, so the shapes line up exactly.
  • Expose the score as text, for example Rated 4.5 out of 5, since screen readers cannot count filled stars.

Icons That Work Well with Star

Browse all support & likes icons

Star Icon FAQ

A single star usually means favourite or important: starring an email, file or project keeps it easy to find. A row of stars means a rating, where the number of filled stars shows the score. The context, one star or five, tells people which meaning applies.

Pick the star when favourites mean priority or quick access, as in starred emails or documents. Pick the heart when saving is personal, like a wishlist or liked songs. If your product already uses stars for ratings, choose the heart for favourites to avoid confusion.

Yes. The star icon is one of 891 free, open-source icons you can use in personal and commercial work, including client projects and apps you sell. The packages are MIT licensed; keep the licence notice if you redistribute the icon files.

SVG, PNG and WebP, at any size from 16 to 512 pixels. You can also copy it as JSX or as a ready-made component for React, React Native, Vue, Svelte, Angular and Flutter, with your stroke weight and colour already applied.