interface
Star icon
Star is an original glyphfox icon from the interface set, drawn on the 24 by 24 grid with one shape. It has a hand drawn duotone layer that takes a second color. Its closed shapes also give it a solid style, generated at build time. Tags: favorite, rating, bookmark, award.
Sizes, weights and styles
Every glyphfox icon renders along three axes. The stroke grows a little below 24 px so small icons keep their presence.
Sizes
Weights
Styles
Copy the code
Pick a format. Each snippet uses the package entry point for that stack; the props work the same everywhere.
App.jsx
import { StarIcon } from 'glyphfox/react'; <StarIcon />
App.vue
<script setup> import { StarIcon } from 'glyphfox/vue'; </script> <template> <StarIcon /> </template>
App.svelte
<script> import { StarIcon } from 'glyphfox/svelte'; </script> <StarIcon />
app.component
import { GlyphFoxIcon, provideGlyphFox } from 'glyphfox-angular'; <gf-icon name="star"></gf-icon>
index.html
<glyph-fox name="star"></glyph-fox>
index.html
<script src="https://cdn.jsdelivr.net/npm/glyphfox@1"></script> <glyph-fox name="star"></glyph-fox>
index.html
<span class="gf-star" aria-hidden="true"></span>
star.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="glyphfox glyphfox-star" aria-hidden="true"><path d="M13.46 4.08L15.14 7.84A.7 .7 0 0 0 15.7 8.25L19.8 8.68A1.6 1.6 0 0 1 20.7 11.46L17.64 14.22A.7 .7 0 0 0 17.43 14.88L18.28 18.91A1.6 1.6 0 0 1 15.91 20.62L12.35 18.57A.7 .7 0 0 0 11.65 18.57L8.09 20.62A1.6 1.6 0 0 1 5.72 18.91L6.57 14.88A.7 .7 0 0 0 6.36 14.22L3.3 11.46A1.6 1.6 0 0 1 4.2 8.68L8.3 8.25A.7 .7 0 0 0 8.86 7.84L10.54 4.08A1.6 1.6 0 0 1 13.46 4.08Z"/></svg>
data URI
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='glyphfox glyphfox-star' aria-hidden='true'%3E%3Cpath d='M13.46 4.08L15.14 7.84A.7 .7 0 0 0 15.7 8.25L19.8 8.68A1.6 1.6 0 0 1 20.7 11.46L17.64 14.22A.7 .7 0 0 0 17.43 14.88L18.28 18.91A1.6 1.6 0 0 1 15.91 20.62L12.35 18.57A.7 .7 0 0 0 11.65 18.57L8.09 20.62A1.6 1.6 0 0 1 5.72 18.91L6.57 14.88A.7 .7 0 0 0 6.36 14.22L3.3 11.46A1.6 1.6 0 0 1 4.2 8.68L8.3 8.25A.7 .7 0 0 0 8.86 7.84L10.54 4.08A1.6 1.6 0 0 1 13.46 4.08Z'/%3E%3C/svg%3E
index.html
<!-- copy node_modules/glyphfox/dist/sprite.svg to your public folder --> <svg width="24" height="24" aria-hidden="true"> <use href="/sprite.svg#gf-star"></use> </svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; --> <i data-glyph="star"></i>
icon.js
import { renderToString } from 'glyphfox/core'; import iconStar from 'glyphfox/icons/star'; const svg = renderToString(iconStar, { size: 24 }); // or, with every icon registered by name: // import { toSvg } from 'glyphfox'; // toSvg('star', { size: 24 });
Details
With a modifier badge
Add a badge in any corner with modifier or the name syntax. The icon is cut around the badge, so the result still passes the icon rules.
star+checkstar+plusstar+xstar+alertUse it in your stack
Guides with the install, the props and the pitfalls for each stack: