UNPKG

@roo-ui/components

Version:

29 lines 905 B
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withDocs } from 'storybook-readme'; import Radio from '.'; import { Box, Label } from '..'; import README from './README.md'; storiesOf('Components|Radio', module).addDecorator(withDocs(README)).add('default', function () { return React.createElement(Box, { textAlign: "left", as: "form" }, React.createElement(Label, { textStyle: "text" }, React.createElement(Radio, { name: "example" }), " Uno"), React.createElement(Label, { textStyle: "text" }, React.createElement(Radio, { name: "example" }), " Dos"), React.createElement(Label, { textStyle: "text" }, React.createElement(Radio, { name: "example" }), " Tres"), React.createElement(Label, { textStyle: "text" }, React.createElement(Radio, { disabled: true, name: "example" }), " Quattro (disabled)")); });