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

18 lines
416 B
JavaScript
Raw Normal View History

import * as React from 'react';
import MultiSwitch from './multi-switch';
export default { title: 'Navigation | Sliding 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' },
]}
/>
);