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>
21 lines
515 B
JavaScript
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' },
|
|
]}
|
|
/>
|
|
);
|