space
Asteroid icon
Asteroid is an original glyphfox icon from the space set, drawn on the 24 by 24 grid with 4 shapes. Its closed shapes also give it a solid style, generated at build time. Tags: asteroid, rock, meteorite, space, crater.
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 { AsteroidIcon } from 'glyphfox/react'; <AsteroidIcon />
App.vue
<script setup> import { AsteroidIcon } from 'glyphfox/vue'; </script> <template> <AsteroidIcon /> </template>
App.svelte
<script> import { AsteroidIcon } from 'glyphfox/svelte'; </script> <AsteroidIcon />
app.component
import { GlyphFoxIcon, provideGlyphFox } from 'glyphfox-angular'; <gf-icon name="asteroid"></gf-icon>
index.html
<glyph-fox name="asteroid"></glyph-fox>
index.html
<script src="https://cdn.jsdelivr.net/npm/glyphfox@1"></script> <glyph-fox name="asteroid"></glyph-fox>
index.html
<span class="gf-asteroid" aria-hidden="true"></span>
asteroid.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-asteroid" aria-hidden="true"><path d="M7.65 4.78L12.25 3.25A2 2 0 0 1 13.71 3.32L17.82 5.19A2 2 0 0 1 18.81 6.18L20.7 10.34A2 2 0 0 1 20.81 11.7L19.66 15.93A2 2 0 0 1 19.06 16.89L15.5 20.06A2 2 0 0 1 14.34 20.56L9.78 20.94A2 2 0 0 1 8.38 20.52L5.06 17.94A2 2 0 0 1 4.34 16.81L3.19 11.84A2 2 0 0 1 3.48 10.28L6.62 5.57A2 2 0 0 1 7.65 4.78Z"/><circle cx="10" cy="10" r="2.25"/><circle cx="14.5" cy="14.5" r="1.75"/><path d="M8.5 16h.01"/></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-asteroid' aria-hidden='true'%3E%3Cpath d='M7.65 4.78L12.25 3.25A2 2 0 0 1 13.71 3.32L17.82 5.19A2 2 0 0 1 18.81 6.18L20.7 10.34A2 2 0 0 1 20.81 11.7L19.66 15.93A2 2 0 0 1 19.06 16.89L15.5 20.06A2 2 0 0 1 14.34 20.56L9.78 20.94A2 2 0 0 1 8.38 20.52L5.06 17.94A2 2 0 0 1 4.34 16.81L3.19 11.84A2 2 0 0 1 3.48 10.28L6.62 5.57A2 2 0 0 1 7.65 4.78Z'/%3E%3Ccircle cx='10' cy='10' r='2.25'/%3E%3Ccircle cx='14.5' cy='14.5' r='1.75'/%3E%3Cpath d='M8.5 16h.01'/%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-asteroid"></use> </svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; --> <i data-glyph="asteroid"></i>
icon.js
import { renderToString } from 'glyphfox/core'; import iconAsteroid from 'glyphfox/icons/asteroid'; const svg = renderToString(iconAsteroid, { size: 24 }); // or, with every icon registered by name: // import { toSvg } from 'glyphfox'; // toSvg('asteroid', { 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.
asteroid+checkasteroid+plusasteroid+xasteroid+alertUse it in your stack
Guides with the install, the props and the pitfalls for each stack: