fix(storybook): update storybook generation templates
This commit is contained in:
13
web/.storybook/tools/Images.template
Normal file
13
web/.storybook/tools/Images.template
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Canvas, Meta, Story, IconItem, IconGallery } from '@storybook/addon-docs';
|
||||
|
||||
<Meta title="{{category}}" parameters=\{{previewTabs: { canvas: { hidden: true } }, chromatic: { disableSnapshot: true }}} />
|
||||
|
||||
# {{capitalize title}}
|
||||
|
||||
<IconGallery>
|
||||
{{#each images}}
|
||||
<IconItem name="{{this.name}}">
|
||||
<img src="{{this.src}}" />
|
||||
</IconItem>
|
||||
{{/each}}
|
||||
</IconGallery>
|
||||
Reference in New Issue
Block a user