veza/apps/web/src/components/ui/Checkbox.stories.tsx
senke 31c9f2af0c feat: global update including storybook setup and backend fixes
- Web: Setup Storybook, added addons, configured Tailwind, added stories for UI components.
- Backend: Updated API router, database, workers, and auth in common.
- Stream Server: Removed SQLx queries and updated auth.
- Docs & Scripts: Updated documentation and recovery scripts.
2026-02-02 19:34:14 +01:00

44 lines
946 B
TypeScript

import type { Meta, StoryObj } from '@storybook/react';
// import { fn } from '@storybook/test';
import { Checkbox } from './checkbox';
const meta = {
title: 'UI/Checkbox',
component: Checkbox,
tags: ['autodocs'],
argTypes: {
label: { control: 'text' },
disabled: { control: 'boolean' },
checked: { control: 'boolean' },
},
args: {
label: 'Accept terms and conditions',
onCheckedChange: () => { }, // fn()
}
} satisfies Meta<typeof Checkbox>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const Checked: Story = {
args: {
checked: true,
},
};
export const Disabled: Story = {
args: {
disabled: true,
label: 'Disabled option',
},
};
export const DisabledChecked: Story = {
args: {
disabled: true,
checked: true,
label: 'Disabled and checked',
},
};