mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
18 lines
492 B
JavaScript
18 lines
492 B
JavaScript
import * as React from 'react';
|
|
import ToggleSwitch from './toggle-switch';
|
|
|
|
export default { title: '1 | 2 / 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} />
|
|
</>
|
|
);
|