insomnia/packages/insomnia-components/components/radio-button-group.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

21 lines
515 B
JavaScript

// @flow
import * as React from 'react';
import RadioButtonGroup from './radio-button-group';
export default { title: '1st Party | Radio Button Group' };
export const _default = () => (
<RadioButtonGroup
name="dummy"
defaultValue="scratch"
onChange={v => console.log(v)}
choices={[
{ label: 'From Scratch', value: 'scratch' },
{ label: 'From Repository', value: 'repo' },
{ label: 'From Clipboard', value: 'clip' },
{ label: 'From Spec', value: 'spec' },
]}
/>
);