Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add stories for the content type switcher (#665)

Dhruv Bhanushali375fc6e6bd31
diff --git a/src/components/VContentSwitcher/meta/VContentSwitcherPopover.stories.mdx b/src/components/VContentSwitcher/meta/VContentSwitcherPopover.stories.mdx
new file mode 100644
index 000000000..e55be7a28
--- /dev/null
+++ b/src/components/VContentSwitcher/meta/VContentSwitcherPopover.stories.mdx
@@ -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>