insomnia/packages/insomnia-components/components/multi-switch.stories.js
Gregory Schier dc2ca9ac88
Add multi-switch component, refactor radio group, and add success icon (#2324)
* Add multi-switch component, refactor radio group, and add succeess icon

* Fix dark theme for storybook

Co-authored-by: Mike Ellan <52717970+sonicyeti@users.noreply.github.com>
2020-06-26 10:45:11 -04:00

18 lines
413 B
JavaScript

import * as React from 'react';
import MultiSwitch from './multi-switch';
export default { title: '1st Party | Multi Switch' };
export const _default = () => (
<MultiSwitch
name="activity"
defaultValue="debug"
onChange={v => console.log(v)}
choices={[
{ label: 'Design', value: 'design' },
{ label: 'Debug', value: 'debug' },
{ label: 'Test', value: 'test' },
]}
/>
);