insomnia/packages/insomnia-components/components/radio-button-group.stories.js

21 lines
515 B
JavaScript
Raw Normal View History

2020-04-26 20:33:39 +00:00
// @flow
import * as React from 'react';
import RadioButtonGroup from './radio-button-group';
export default { title: '1st Party | Radio Button Group' };
2020-04-26 20:33:39 +00:00
2020-05-14 20:27:43 +00:00
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' },
]}
/>
2020-05-14 20:27:43 +00:00
);