open-vault/ui/stories/icon.stories.js
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

41 lines
976 B
JavaScript

/* 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';
storiesOf('Icon/', module)
.addParameters({ options: { showPanel: false } })
.add(
'Icon',
() => ({
template: hbs`
<h5 class="title is-5">Icons from HashiCorp Structure</h5>
<table class="table">
<thead>
<tr>
<th>Glyph title</th>
<th>Glyph</th>
</tr>
</thead>
<tbody>
{{#each types as |type|}}
<tr>
<td>
<h5>{{humanize type}}</h5>
</td>
<td>
<Icon @glyph={{type}} />
</td>
</tr>
{{/each}}
</tbody>
</table>
`,
context: {
types: icons,
},
}),
{ notes }
);