/* eslint-disable import/extensions */ import hbs from 'htmlbars-inline-precompile'; import { storiesOf } from '@storybook/ember'; import notes from './icon.md'; import icons from '../node_modules/@hashicorp/structure-icons/dist/index.js'; import { withKnobs, select } from '@storybook/addon-knobs'; storiesOf('Icon/', module) .addParameters({ options: { showPanel: true} }) .addDecorator(withKnobs()) .add( 'Icon', () => ({ template: hbs`
Icons from HashiCorp Structure
{{#each types as |type|}} {{/each}}
Glyph title Glyph
{{humanize type}}
`, context: { types: icons, size: select('Size', ['s', 'm', 'l', 'xl', 'xxl'], 'm'), }, }), { notes } );