This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stories for the content type switcher (#665)
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/components/VContentSwitcher/meta/VContentSwitcherPopover.stories.mdx
This file contains 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
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> |