ICONYZ
English
Star icon from coolicons

Star icon

ci:star

The Star icon (ci:star) is a free SVG icon from the coolicons set by Kryston Schwarze. It is drawn on a 24 × 24 grid. coolicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
coolicons
Author
Kryston Schwarze
License
CC-BY-4.0
Size
24 × 24
Category
Interface
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.335 10.337a.5.5 0 0 1 .28-.864l6.004-.712a.5.5 0 0 0 .396-.287l2.532-5.49a.5.5 0 0 1 .908 0l2.532 5.49a.5.5 0 0 0 .395.287l6.004.712a.5.5 0 0 1 .28.864l-4.438 4.105a.5.5 0 0 0-.15.464l1.177 5.93a.5.5 0 0 1-.735.534l-5.275-2.953a.5.5 0 0 0-.488 0l-5.276 2.952a.5.5 0 0 1-.735-.533l1.178-5.93a.5.5 0 0 0-.15-.464z"/></svg>

How to use the Star icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Star icon in other icon sets

Star icon FAQ

Is the Star icon free for commercial use?

Yes. coolicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Star icon in React?

Install @iconify/react and render <Icon icon="ci: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/ci/star.svg" alt="Star icon">, or paste the SVG code inline to style it with CSS.

Browse all coolicons →