visuals, fixes & storybook upd

This commit is contained in:
2026-06-01 01:09:55 +03:00
parent a5d2742c7c
commit 4919bc26e5
19 changed files with 1704 additions and 342 deletions
+10
View File
@@ -22,11 +22,21 @@ const meta = {
},
},
},
argTypes: {
defaultChecked: { control: 'boolean' },
checked: { control: 'boolean' },
disabled: { control: 'boolean' },
onCheckedChange: { action: 'checked changed' },
},
} satisfies Meta<typeof Switch>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Playground: Story = {
args: { defaultChecked: false },
};
export const Switches: Story = {
render: () => (
<div style={{ display: 'flex', gap: 20, alignItems: 'center' }}>