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

43 lines
993 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>
<label>
<input type="radio" name="specSrc" value="scratch" onClick={() => window.alert('Selected')} />
<span>From Scratch</span>
</label>
<label>
<input
type="radio"
name="specSrc"
value="repository"
onClick={() => window.alert('Selected')}
/>
<span>From Repository</span>
</label>
<label>
<input
type="radio"
name="specSrc"
value="clipboard"
onClick={() => window.alert('Selected')}
/>
<span>From Clipboard</span>
</label>
<label>
<input
type="radio"
name="specSrc"
value="wherever"
onClick={() => window.alert('Selected')}
/>
<span>From Wherever</span>
</label>
</RadioButtonGroup>
);