import type { Meta, StoryObj } from '@storybook/vue3-vite'; import SegmentedControlItem from '../segmented-control-item.vue'; import SegmentedControl from '../segmented-control.vue'; const meta: Meta = { title: 'Components/Segmented Control', component: SegmentedControl, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { defaultValue: 'light', orientation: 'horizontal', loop: true, rovingFocus: true, disabled: false, dir: 'ltr', }, render: args => ({ components: { SegmentedControl, SegmentedControlItem }, setup() { return { args }; }, template: ` Light Dark System `, }), }; export const Vertical: Story = { args: { orientation: 'vertical', defaultValue: 'light', }, render: args => ({ components: { SegmentedControl, SegmentedControlItem }, setup() { return { args }; }, template: ` Light Dark System `, }), }; export const LabelsOnly: Story = { args: { orientation: 'horizontal', defaultValue: 'light', }, render: args => ({ components: { SegmentedControl, SegmentedControlItem }, setup() { return { args }; }, template: ` Light Dark System `, }), }; export const IconsOnly: Story = { args: { orientation: 'horizontal', defaultValue: 'light', }, render: args => ({ components: { SegmentedControl, SegmentedControlItem }, setup() { return { args }; }, template: ` `, }), };