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

Add stories for the content type switcher #665

Merged
merged 1 commit into from
Jan 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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),
dhruvkb marked this conversation as resolved.
Show resolved Hide resolved
})

# VContentSwitcherPopover

<Description of={VContentSwitcherPopover} />

<ArgsTable of={VContentSwitcherPopover} />

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