ICONYZ
English
Star icon from Prime Icons

Star icon

prime:star

The Star icon (prime:star) is a free SVG icon from the Prime Icons set by PrimeTek. It is drawn on a 24 × 24 grid. Prime Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Prime Icons
Author
PrimeTek
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17.2 20.75a.73.73 0 0 1-.35-.09L12 18.11l-4.85 2.55a.75.75 0 0 1-.79-.05a.76.76 0 0 1-.3-.74l.94-5.4l-3.94-3.82a.75.75 0 0 1-.18-.77a.74.74 0 0 1 .6-.51l5.42-.79l2.43-4.91a.78.78 0 0 1 1.34 0l2.43 4.91l5.42.79a.74.74 0 0 1 .6.51a.75.75 0 0 1-.18.77L17 14.47l.93 5.4a.76.76 0 0 1-.3.74a.8.8 0 0 1-.43.14M12 16.52a.85.85 0 0 1 .35.08l3.85 2l-.73-4.29a.78.78 0 0 1 .21-.67l3.12-3l-4.31-.64a.76.76 0 0 1-.56-.41L12 5.69L10.07 9.6a.76.76 0 0 1-.56.41l-4.31.63l3.12 3a.78.78 0 0 1 .21.67l-.73 4.32l3.85-2a.85.85 0 0 1 .35-.11"/></svg>

How to use the Star icon

React

import { Icon } from "@iconify/react";

<Icon icon="prime:star" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="prime:star" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="prime:star" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[prime--star]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/prime -->
<div class="i-prime:star"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="prime:star"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/prime/star.svg" alt="Star icon" width="24" height="24">

Related icons in Prime Icons

Star icon in other icon sets

Star icon FAQ

Is the Star icon free for commercial use?

Yes. Prime Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Star icon in React?

Install @iconify/react and render <Icon icon="prime:star" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Star icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/prime/star.svg" alt="Star icon">, or paste the SVG code inline to style it with CSS.

Browse all Prime Icons →