insomnia/packages/insomnia-components/components/toggle-switch.stories.js

18 lines
496 B
JavaScript
Raw Normal View History

import * as React from 'react';
import ToggleSwitch from './toggle-switch';
export default { title: '3rd Party | Toggle Switch' };
const defaultOnChange = () => {};
export const Checked = () => <ToggleSwitch checked onChange={defaultOnChange} />;
export const Unchecked = () => <ToggleSwitch onChange={defaultOnChange} />;
export const Disabled = () => (
<>
<ToggleSwitch disabled checked onChange={defaultOnChange} />
<ToggleSwitch disabled onChange={defaultOnChange} />
</>
);