Last active
March 20, 2022 15:55
-
-
Save iamparthaonline/902edcf7eb1a7733dec55a7486b5abfd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { addons } from '@storybook/addons'; | |
| addons.setConfig({ | |
| isFullscreen: false, | |
| showNav: true, | |
| showPanel: true, | |
| panelPosition: 'right', | |
| enableShortcuts: true, | |
| isToolshown: true, | |
| initialActive: 'sidebar', | |
| sidebar: { | |
| showRoots: false, | |
| collapsedRoots: ['other'], | |
| }, | |
| toolbar: { | |
| title: { hidden: false, }, | |
| zoom: { hidden: false, }, | |
| eject: { hidden: false, }, | |
| copy: { hidden: false, }, | |
| fullscreen: { hidden: false, }, | |
| }, | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import withEvents from 'storybook-auto-events'; | |
| import "./style.scss"; | |
| import Vue from "vue"; | |
| import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; | |
| export const decorators = [ | |
| withEvents | |
| ]; | |
| // you can add mixins here | |
| export const parameters = { | |
| viewport: { | |
| viewports: INITIAL_VIEWPORTS, | |
| defaultViewport: 'iphonex', | |
| }, | |
| actions: { argTypesRegex: "^on[A-Z].*" }, | |
| controls: { | |
| matchers: { | |
| color: /(background|color)$/i, | |
| date: /Date$/, | |
| }, | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment