List all available icons in a story.

This is like the same as using svg-jar, right?
This commit is contained in:
Michael Lange
2020-10-26 12:26:42 -07:00
parent a97b1bc3e2
commit 94f3d79ebe
2 changed files with 38 additions and 0 deletions

View File

@@ -142,4 +142,24 @@
width: 300px;
}
}
.tile-list {
display: flex;
flex-wrap: wrap;
.icon-tile {
width: 240px;
padding: 10px;
margin: 10px;
border: 1px solid $grey-lighter;
border-radius: $radius;
svg {
margin: auto;
width: 30px;
height: 30;
fill: $grey;
color: $grey;
}
}
}
}

View File

@@ -0,0 +1,18 @@
import hbs from 'htmlbars-inline-precompile';
export default {
title: 'Theme|Icons',
};
export let Icons = () => ({
template: hbs`
<ul class="tile-list">
{{#each (all-icons) as |icon|}}
<li class="icon-tile">
{{x-icon icon}}
<code>{{icon}}</code>
</li>
{{/each}}
</ul>
`,
});