import type {Meta, StoryObj} from '@storybook/web-components'; import {ObcToggleSwitch} from './toggle-switch'; import {withActions} from '@storybook/addon-actions/decorator'; import {fn} from '@storybook/test'; import './toggle-switch'; // More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction const meta: Meta = { title: 'Control/Toggle Switch', tags: ['autodocs'], component: 'obc-toggle-switch', argTypes: { label: { control: {type: 'text'}, }, }, parameters: { actions: { handles: ['input'], }, }, decorators: [withActions], } satisfies Meta; export default meta; type Story = StoryObj; // More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args export const Primary: Story = { args: { label: 'Label', }, };