mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
4f39486eb7
* Migrating dimensions, latest SVG, stubbing sidebar * Revert "Migrating dimensions, latest SVG, stubbing sidebar" This reverts commit5014a68f52
. * Revert "Revert "Migrating dimensions, latest SVG, stubbing sidebar"" This reverts commit28c130c8d8
. * Post merge bootstrap & build * Linting * Updating Story Heirarchy * Migrating legacy tooltip component * Reverting spacing integration into core dimensions * Cleaning up comments, tweaking CSS var usage * Removing static height * Cleaning up static CSS values, re-organizing sliding panel, fixing search icon * adding flow def for autobind in new SB instance * PR feedback, removing new vars/updating markup * Fixing lint > flow error on type
18 lines
496 B
JavaScript
18 lines
496 B
JavaScript
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} />
|
|
</>
|
|
);
|