import type { Meta, StoryObj } from '@storybook/vue3'; import { Sidebar, SidebarItem, SidebarSubitem } from '~/components'; type Story = StoryObj; const meta: Meta = { title: 'Application/Sidebar/Sidebar', component: Sidebar, tags: ['sidebar', 'bar', 'nav'], argTypes: { 'items': { table: { disable: true } }, 'header': { table: { disable: true } }, 'lower-items': { table: { disable: true } }, 'collapsed': { table: { disable: true } }, }, }; export const Sidebar_: Story = { render: args => ({ components: { Sidebar, SidebarItem, SidebarSubitem }, setup() { const items = [ { label: 'Products', active: true, icon: 'i-youcan-tag', children: [ { label: 'All Products' }, { label: 'Categories' }, ], }, { label: 'Insights', active: false, icon: 'i-youcan-chart-line', }, ]; return { args, items }; }, template: ` `, }), }; export default meta;