gentleface

Gentleface › Social & emotions › star

star icon

Star: favorite, rating, favourite, favorites. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated star-twinkle · line-round

The star draws in, then its points shoot out as the inner corners pull toward the middle. It settles and glints once more, smaller.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 2.25 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.653 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM6.59 6.351C6.517 6.546 6.394 6.703 6.223 6.822C6.052 6.941 5.862 7 5.653 7L2.852 7L5.091 8.919C5.235 9.043 5.335 9.194 5.393 9.375C5.45 9.555 5.456 9.737 5.41 9.921L4.814 12.304L6.919 10.801C7.093 10.677 7.286 10.614 7.5 10.614C7.714 10.614 7.907 10.677 8.081 10.801L10.186 12.304L9.59 9.921C9.544 9.737 9.55 9.555 9.607 9.375C9.665 9.194 9.765 9.043 9.909 8.919L12.148 7L9.347 7C9.138 7 8.948 6.941 8.777 6.822C8.606 6.703 8.483 6.546 8.41 6.351L7.5 3.924L6.59 6.351Z"/></svg>
React
// Gentleface "star" (line-round), MIT. https://gentleface.com/icons/star
import type { SVGProps } from 'react';

export function StarIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.653 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM6.59 6.351C6.517 6.546 6.394 6.703 6.223 6.822C6.052 6.941 5.862 7 5.653 7L2.852 7L5.091 8.919C5.235 9.043 5.335 9.194 5.393 9.375C5.45 9.555 5.456 9.737 5.41 9.921L4.814 12.304L6.919 10.801C7.093 10.677 7.286 10.614 7.5 10.614C7.714 10.614 7.907 10.677 8.081 10.801L10.186 12.304L9.59 9.921C9.544 9.737 9.55 9.555 9.607 9.375C9.665 9.194 9.765 9.043 9.909 8.919L12.148 7L9.347 7C9.138 7 8.948 6.941 8.777 6.822C8.606 6.703 8.483 6.546 8.41 6.351L7.5 3.924L6.59 6.351Z" />
    </svg>
  );
}
Vue
Vue: see /icons/star.md
Svelte
Svelte: see /icons/star.md
HTML img
HTML img: see /icons/star.md
CSS
CSS: see /icons/star.md
Data URL
Data URL: see /icons/star.md
Sprite
Sprite: see /icons/star.md
SwiftUI
SwiftUI: see /icons/star.md
Compose
Compose: see /icons/star.md
Android XML
Android XML: see /icons/star.md
Flutter
Flutter: see /icons/star.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { StarIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
favorite, rating, favourite, favorites, starred, star rating, hotel class, rate, ratings
Alternatives
  • heart: favorite, where the product uses hearts
  • star-half: a partial rating display
Don’t confuse with
  • bookmark: bookmark saves for later; it is not a favorite
Also fits
  • likert scale: a star rating (rating)
  • bookmark: favorite
  • top rated: a rating value
Not for
  • ai (use sparkles): the star motif means favorite or rating, not AI
  • award (use award): star means favorite or rating
  • mark (use flag): favorite
  • meteor (use meteor): star owns favorite and rating
  • featured (use seal-star): the star motif does not mean featured
  • asterisk (use asterisk): star means favorite or rating
Tags
favourite, rate, bookmark, starred
Category
Social & emotions
Component name
StarIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 4

More social & emotions icons

For agents

Metadata: /icons/star.json · Markdown: /icons/star.md · SVG: https://gentleface.com/svg/{style}/16/star.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/star.png