We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b272f4f commit 0f63691Copy full SHA for 0f63691
1 file changed
packages/ui-components/src/Common/Switch/index.stories.tsx
@@ -1,28 +1,16 @@
1
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2
-import { useState } from 'react';
3
4
import Switch from '#ui/Common/Switch';
5
6
type Story = StoryObj<typeof Switch>;
7
type Meta = MetaObj<typeof Switch>;
8
9
-export const Uncontrolled: Story = {
+export const WithLabel: Story = {
10
args: {
11
label: 'Enable Feature',
12
},
13
};
14
15
-export const Controlled: Story = {
16
- args: {
17
- label: 'Enable Feature',
18
- },
19
- render: args => {
20
- const [checked, setChecked] = useState(false);
21
-
22
- return <Switch {...args} checked={checked} onCheckedChange={setChecked} />;
23
24
-};
25
26
export const WithoutLabel: Story = {};
27
28
export default {
0 commit comments