Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Add stories for the content type switcher (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Jan 21, 2022
1 parent 52d70db commit 375fc6e
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {
ArgsTable,
Canvas,
Description,
Meta,
Story,
} from '@storybook/addon-docs'

import VContentSwitcherPopover from '@/components/VContentSwitcher/VContentSwitcherPopover.vue'

<Meta
title="Components/VContentSwitcherPopover"
components={VContentSwitcherPopover}
argTypes={{
select: {
action: 'select',
},
}}
/>

export const Template = (args, { argTypes }) => ({
template: `<VContentSwitcherPopover active-item="image" v-bind="$props" v-on="$props"/>`,
components: { VContentSwitcherPopover },
props: Object.keys(argTypes),
})

# VContentSwitcherPopover

<Description of={VContentSwitcherPopover} />

<ArgsTable of={VContentSwitcherPopover} />

<Canvas>
<Story height="480px" name="Default">
{Template.bind({})}
</Story>
</Canvas>

0 comments on commit 375fc6e

Please sign in to comment.