sports

Medal icon

Medal is an original glyphfox icon from the sports 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: medal, winner, gold, prize, champion.

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 { MedalIcon } from 'glyphfox/react';

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

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

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

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

<glyph-fox name="medal"></glyph-fox>
index.html
<span class="gf-medal" aria-hidden="true"></span>
medal.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-medal" aria-hidden="true"><circle cx="12" cy="15" r="6"/><path d="M7.5 2.5l3 6.5"/><path d="M16.5 2.5l-3 6.5"/><path d="M12.39 12.81L12.85 13.82A.19 .19 0 0 0 13 13.93L14.11 14.05A.43 .43 0 0 1 14.35 14.8L13.52 15.55A.19 .19 0 0 0 13.47 15.72L13.7 16.81A.43 .43 0 0 1 13.06 17.27L12.09 16.72A.19 .19 0 0 0 11.91 16.72L10.94 17.27A.43 .43 0 0 1 10.3 16.81L10.53 15.72A.19 .19 0 0 0 10.48 15.55L9.65 14.8A.43 .43 0 0 1 9.89 14.05L11 13.93A.19 .19 0 0 0 11.15 13.82L11.61 12.81A.43 .43 0 0 1 12.39 12.81Z"/></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-medal' aria-hidden='true'%3E%3Ccircle cx='12' cy='15' r='6'/%3E%3Cpath d='M7.5 2.5l3 6.5'/%3E%3Cpath d='M16.5 2.5l-3 6.5'/%3E%3Cpath d='M12.39 12.81L12.85 13.82A.19 .19 0 0 0 13 13.93L14.11 14.05A.43 .43 0 0 1 14.35 14.8L13.52 15.55A.19 .19 0 0 0 13.47 15.72L13.7 16.81A.43 .43 0 0 1 13.06 17.27L12.09 16.72A.19 .19 0 0 0 11.91 16.72L10.94 17.27A.43 .43 0 0 1 10.3 16.81L10.53 15.72A.19 .19 0 0 0 10.48 15.55L9.65 14.8A.43 .43 0 0 1 9.89 14.05L11 13.93A.19 .19 0 0 0 11.15 13.82L11.61 12.81A.43 .43 0 0 1 12.39 12.81Z'/%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-medal"></use>
</svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; -->
<i data-glyph="medal"></i>
icon.js
import { renderToString } from 'glyphfox/core';
import iconMedal from 'glyphfox/icons/medal';

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

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

Details

Namemedal
React, Vue and Svelte componentMedalIcon
Icon data exporticonMedal
Categoriessports
Tagsmedal winner gold prize champion
StylesOutline, Duotone (fill of the closed shapes), Solid
Shapes4
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.

medal+check
medal+plus
medal+x
medal+alert

Use it in your stack

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