gaming
Bomb icon
Bomb is an original glyphfox icon from the gaming set, drawn on the 24 by 24 grid with 5 shapes. Its closed shapes also give it a solid style, generated at build time. Tags: explosive, boom, danger, cartoon.
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 { BombIcon } from 'glyphfox/react'; <BombIcon />
App.vue
<script setup> import { BombIcon } from 'glyphfox/vue'; </script> <template> <BombIcon /> </template>
App.svelte
<script> import { BombIcon } from 'glyphfox/svelte'; </script> <BombIcon />
app.component
import { GlyphFoxIcon, provideGlyphFox } from 'glyphfox-angular'; <gf-icon name="bomb"></gf-icon>
index.html
<glyph-fox name="bomb"></glyph-fox>
index.html
<script src="https://cdn.jsdelivr.net/npm/glyphfox@1"></script> <glyph-fox name="bomb"></glyph-fox>
index.html
<span class="gf-bomb" aria-hidden="true"></span>
bomb.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-bomb" aria-hidden="true"><circle cx="10.5" cy="13.5" r="7"/><path d="M15.45 8.55l1.8-1.8"/><path d="M17.25 6.75q.5-1.75 2-2.25"/><path d="M20.4 2.1Q20.58 3.42 21.9 3.6Q20.58 3.78 20.4 5.1Q20.22 3.78 18.9 3.6Q20.22 3.42 20.4 2.1Z"/><path d="M6.74 12.13A4 4 0 0 1 9.13 9.74"/></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-bomb' aria-hidden='true'%3E%3Ccircle cx='10.5' cy='13.5' r='7'/%3E%3Cpath d='M15.45 8.55l1.8-1.8'/%3E%3Cpath d='M17.25 6.75q.5-1.75 2-2.25'/%3E%3Cpath d='M20.4 2.1Q20.58 3.42 21.9 3.6Q20.58 3.78 20.4 5.1Q20.22 3.78 18.9 3.6Q20.22 3.42 20.4 2.1Z'/%3E%3Cpath d='M6.74 12.13A4 4 0 0 1 9.13 9.74'/%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-bomb"></use> </svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; --> <i data-glyph="bomb"></i>
icon.js
import { renderToString } from 'glyphfox/core'; import iconBomb from 'glyphfox/icons/bomb'; const svg = renderToString(iconBomb, { size: 24 }); // or, with every icon registered by name: // import { toSvg } from 'glyphfox'; // toSvg('bomb', { 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.
bomb+checkbomb+plusbomb+xbomb+alertUse it in your stack
Guides with the install, the props and the pitfalls for each stack: