Star icon
andrsrxn:star
The Star icon (andrsrxn:star) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Emoji, Social
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M10.22 4.24C11 2.72 11.39 1.95 12 1.95s1 .77 1.78 2.3l1.35 2.65c.23.44.34.66.54.8s.44.18.93.26l2.94.47c1.7.27 2.54.4 2.73.99c.2.58-.42 1.19-1.63 2.4l-2.1 2.1c-.35.36-.53.53-.6.76c-.08.23-.04.48.04.97l.46 2.94c.27 1.7.4 2.54-.1 2.9c-.49.36-1.25-.03-2.78-.8l-2.65-1.36c-.45-.22-.67-.33-.91-.33s-.46.1-.9.33l-2.66 1.35c-1.53.78-2.3 1.17-2.79.81s-.36-1.2-.1-2.9l.47-2.94c.08-.5.12-.74.04-.97s-.25-.4-.6-.76l-2.1-2.1C2.15 10.6 1.54 10 1.73 9.42c.19-.59 1.03-.72 2.73-.99l2.94-.47c.5-.08.74-.12.93-.26s.3-.36.54-.8z" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.22 4.24C11 2.72 11.39 1.95 12 1.95s1 .77 1.78 2.3l1.35 2.65c.23.44.34.66.54.8s.44.18.93.26l2.94.47c1.7.27 2.54.4 2.73.99c.2.58-.42 1.19-1.63 2.4l-2.1 2.1c-.35.36-.53.53-.6.76c-.08.23-.04.48.04.97l.46 2.94c.27 1.7.4 2.54-.1 2.9c-.49.36-1.25-.03-2.78-.8l-2.65-1.36c-.45-.22-.67-.33-.91-.33s-.46.1-.9.33l-2.66 1.35c-1.53.78-2.3 1.17-2.79.81s-.36-1.2-.1-2.9l.47-2.94c.08-.5.12-.74.04-.97s-.25-.4-.6-.76l-2.1-2.1C2.15 10.6 1.54 10 1.73 9.42c.19-.59 1.03-.72 2.73-.99l2.94-.47c.5-.08.74-.12.93-.26s.3-.36.54-.8z"/></g></svg>How to use the Star icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:star" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:star" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:star" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--star]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:star"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:star"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/star.svg" alt="Star icon" width="24" height="24">Related icons in andrsrxn/icons
Star icon in other icon sets
Star icon FAQ
Is the Star icon free for commercial use?
Yes. andrsrxn/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="andrsrxn: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/andrsrxn/star.svg" alt="Star icon">, or paste the SVG code inline to style it with CSS.