animals

Butterfly icon

Butterfly is an original glyphfox icon from the animals set, drawn on the 24 by 24 grid with 7 shapes. Its closed shapes also give it a solid style, generated at build time. Tags: insect, nature, wings, spring, change.

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

16 px
20 px
24 px
32 px
48 px

Weights

weight 1
weight 1.5
weight 2
weight 2.5
weight 3

Styles

Outline
Duotone
Solid
sharp corners

Copy the code

Pick a format. Each snippet uses the package entry point for that stack; the props work the same everywhere.

Code formats
App.jsx
import { ButterflyIcon } from 'glyphfox/react';

<ButterflyIcon />
App.vue
<script setup>
import { ButterflyIcon } from 'glyphfox/vue';
</script>

<template>
  <ButterflyIcon />
</template>
App.svelte
<script>
  import { ButterflyIcon } from 'glyphfox/svelte';
</script>

<ButterflyIcon />
app.component
import { GlyphFoxIcon, provideGlyphFox } from 'glyphfox-angular';

<gf-icon name="butterfly"></gf-icon>
index.html
<glyph-fox name="butterfly"></glyph-fox>
index.html
<script src="https://cdn.jsdelivr.net/npm/glyphfox@1"></script>

<glyph-fox name="butterfly"></glyph-fox>
index.html
<span class="gf-butterfly" aria-hidden="true"></span>
butterfly.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-butterfly" aria-hidden="true"><path d="M12 11.5C10 9 8 4.5 5.5 4.5 3.9 4.5 3 5.6 3 7.5c0 3 3.3 5.5 9 6Z"/><path d="M12 11.5C14 9 16 4.5 18.5 4.5C20.1 4.5 21 5.6 21 7.5C21 10.5 17.7 13 12 13.5Z"/><path d="M12 14.5c-4 .5-6.5 2.5-6.5 5 0 1.7 1.2 2.5 2.5 2.5 2 0 3.5-2.5 4-5.5Z"/><path d="M12 14.5C16 15 18.5 17 18.5 19.5C18.5 21.2 17.3 22 16 22C14 22 12.5 19.5 12 16.5Z"/><path d="M12 6v15"/><path d="M12 6l-2-3.5"/><path d="M12 6l2-3.5"/></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-butterfly' aria-hidden='true'%3E%3Cpath d='M12 11.5C10 9 8 4.5 5.5 4.5 3.9 4.5 3 5.6 3 7.5c0 3 3.3 5.5 9 6Z'/%3E%3Cpath d='M12 11.5C14 9 16 4.5 18.5 4.5C20.1 4.5 21 5.6 21 7.5C21 10.5 17.7 13 12 13.5Z'/%3E%3Cpath d='M12 14.5c-4 .5-6.5 2.5-6.5 5 0 1.7 1.2 2.5 2.5 2.5 2 0 3.5-2.5 4-5.5Z'/%3E%3Cpath d='M12 14.5C16 15 18.5 17 18.5 19.5C18.5 21.2 17.3 22 16 22C14 22 12.5 19.5 12 16.5Z'/%3E%3Cpath d='M12 6v15'/%3E%3Cpath d='M12 6l-2-3.5'/%3E%3Cpath d='M12 6l2-3.5'/%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-butterfly"></use>
</svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; -->
<i data-glyph="butterfly"></i>
icon.js
import { renderToString } from 'glyphfox/core';
import iconButterfly from 'glyphfox/icons/butterfly';

const svg = renderToString(iconButterfly, { size: 24 });

// or, with every icon registered by name:
// import { toSvg } from 'glyphfox';
// toSvg('butterfly', { size: 24 });

Details

Namebutterfly
React, Vue and Svelte componentButterflyIcon
Icon data exporticonButterfly
Categoriesanimals
Tagsinsect nature wings spring change
StylesOutline, Duotone (fill of the closed shapes), Solid
Shapes7
LicenseMIT

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.

butterfly+check
butterfly+plus
butterfly+x
butterfly+alert

Use it in your stack

Guides with the install, the props and the pitfalls for each stack: