Star icon
rivet-icons:star
The Star icon (rivet-icons:star) is a free SVG icon from the Rivet Icons set by Indiana University. It is drawn on a 24 × 24 grid. Rivet Icons are released under the BSD 3-Clause 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
- Rivet Icons
- Author
- Indiana University
- License
- BSD-3-Clause
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m8 .684l2.231 4.66l5.629.266l-4.18 4.04l1.336 5.254L8 12.324l-5.016 2.58L4.32 9.65L.14 5.61l5.629-.265zm0 4.632l-.943 1.97l-2.197.104l1.684 1.629l-.528 2.077L8 10.076l1.984 1.02l-.528-2.077l1.684-1.63l-2.197-.103z"/></svg>How to use the Star icon
React
import { Icon } from "@iconify/react";
<Icon icon="rivet-icons:star" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="rivet-icons:star" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="rivet-icons:star" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[rivet-icons--star]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/rivet-icons -->
<div class="i-rivet-icons:star"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="rivet-icons:star"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/rivet-icons/star.svg" alt="Star icon" width="24" height="24">Related icons in Rivet Icons
Star icon in other icon sets
Star icon FAQ
Is the Star icon free for commercial use?
Yes. Rivet Icons are released under the BSD 3-Clause 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="rivet-icons: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/rivet-icons/star.svg" alt="Star icon">, or paste the SVG code inline to style it with CSS.