gentleface

Gentleface › Social & emotions › star-half

star-half icon

Star half: half star, partial rating, half rating. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated star-half-rate · line-round

The fill slides back out of the star to its left tip, then sweeps across past the middle almost to the right tip, as a rating is dragged. It snaps back onto the half and the star gives a little pop.

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.2 s to 2.4 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.654 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.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z"/></svg>
React
// Gentleface "star-half" (line-round), MIT. https://gentleface.com/icons/star-half
import type { SVGProps } from 'react';

export function StarHalfIcon(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.654 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.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z" />
    </svg>
  );
}
Vue
Vue: see /icons/star-half.md
Svelte
Svelte: see /icons/star-half.md
HTML img
HTML img: see /icons/star-half.md
CSS
CSS: see /icons/star-half.md
Data URL
Data URL: see /icons/star-half.md
Sprite
Sprite: see /icons/star-half.md
SwiftUI
SwiftUI: see /icons/star-half.md
Compose
Compose: see /icons/star-half.md
Android XML
Android XML: see /icons/star-half.md
Flutter
Flutter: see /icons/star-half.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 { StarHalfIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
half star, partial rating, half rating
Also fits
  • rating: a partial rating display
Tags
star, half, rating, review, score, partial
Category
Social & emotions
Component name
StarHalfIcon
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-half.json · Markdown: /icons/star-half.md · SVG: https://gentleface.com/svg/{style}/16/star-half.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/star-half.png