diff --git a/packages/ripple-ui-core/src/components/tabs/RplTabs.stories.mdx b/packages/ripple-ui-core/src/components/tabs/RplTabs.stories.mdx index 995768ff37..91fcb114c8 100644 --- a/packages/ripple-ui-core/src/components/tabs/RplTabs.stories.mdx +++ b/packages/ripple-ui-core/src/components/tabs/RplTabs.stories.mdx @@ -4,15 +4,20 @@ import { Story, ArgsTable } from '@storybook/addon-docs' +import { ref } from 'vue' import RplTabs from './RplTabs.vue' import { a11yStoryCheck } from './../../../stories/interactions.js' export const SingleTemplate = (args) => ({ components: { RplTabs }, setup() { - return { args } + const activeTab = ref('default') + + const handleTabChange = ({ key }) => activeTab.value = key + + return { args, activeTab, handleTabChange } }, - template: '
' + template: '
' }) ({ icon: 'pin' } ], - activeTab: 'default', mode: 'horizontal' }} > @@ -78,7 +82,6 @@ export const SingleTemplate = (args) => ({ icon: 'pin' } ], - activeTab: 'default', mode: 'vertical' }} >