import type { Meta, StoryObj } from '@storybook/react'; import { Switch } from '@konobangu/design-system/components/ui/switch'; /** * A control that allows the user to toggle between checked and not checked. */ const meta = { title: 'ui/Switch', component: Switch, tags: ['autodocs'], argTypes: {}, parameters: { layout: 'centered', }, render: (args) => (
), } satisfies Meta; export default meta; type Story = StoryObj; /** * The default form of the switch. */ export const Default: Story = { args: { id: 'default-switch', }, }; /** * Use the `disabled` prop to disable the switch. */ export const Disabled: Story = { args: { id: 'disabled-switch', disabled: true, }, };