/*! Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. */
import * as React from 'react';
import Screener, { Steps } from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecorator } from '../utilities';
import { IToggleProps, Toggle } from 'office-ui-fabric-react';
const baseProps: IToggleProps = {
label: 'Toggle label',
onText: 'On',
offText: 'Off',
};
storiesOf('Toggle', module)
.addDecorator(FabricDecorator)
.addDecorator(story => (
{story()}
))
.addStory('Checked', () => , { rtl: true })
.addStory('Unchecked', () => , { rtl: true })
.addStory('Disabled checked', () => (
))
.addStory('Disabled unchecked', () => (
))
.addStory('With inline label', () => (
))
.addStory('With inline label (JSX Element)', () => (
Toggle label
}
onText="On"
offText="Off"
defaultChecked={true}
disabled={false}
inlineLabel={true}
/>
))
.addStory('With inline label disabled', () => (
))
.addStory('With inline label and without onText and offText', () => (
))
.addStory('With inline label (JSX Element) and without onText and offText', () => (
Toggle label} defaultChecked={true} disabled={false} inlineLabel={true} />
))
.addStory('With inline label disabled and without onText and offText', () => (
));