toggleSwitch.stories.mdx
Mon Mar 25 2024 17:11:02 GMT+0000 (Coordinated Universal Time)
Saved by
@rafal_rydz
import {ToggleSwitch} from "ui";
import {ArgsTable, Meta, Story} from "@storybook/addon-docs";
<Meta title="Components/Inputs/ToggleSwitch/old" component={ToggleSwitch}/>
export const Template = (args) => <ToggleSwitch {...args} />;
# ToggleSwitch
This component renders a Toggle Switch.
## Props
<ArgsTable story="Default"/>
## Examples
<Story
name="Default"
args={{
id: "Example",
altText: "example",
action: () => {
},
defaultState: false,
disabled: false,
enabledMessage: "Enabled",
disabledMessage: "Disabled",
}}
>
{Template.bind({})}
</Story>
content_copyCOPY
Comments