Skip to content

Instantly share code, notes, and snippets.

@iamparthaonline
Last active March 20, 2022 15:55
Show Gist options
  • Select an option

  • Save iamparthaonline/902edcf7eb1a7733dec55a7486b5abfd to your computer and use it in GitHub Desktop.

Select an option

Save iamparthaonline/902edcf7eb1a7733dec55a7486b5abfd to your computer and use it in GitHub Desktop.
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, },
},
})
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