mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
dc2ca9ac88
* 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>
18 lines
413 B
JavaScript
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' },
|
|
]}
|
|
/>
|
|
);
|