lucid-ui
Version:
A UI component library from AppNexus.
25 lines (24 loc) • 1.26 kB
JavaScript
import React from 'react';
import createClass from 'create-react-class';
import { RadioButtonLabeled } from '../../../index';
const style = {
marginBottom: '3px',
};
export default createClass({
render() {
return (React.createElement("section", null,
React.createElement("section", null,
React.createElement(RadioButtonLabeled, { Label: 'Just text', style: style }),
React.createElement(RadioButtonLabeled, { Label: React.createElement("span", null, "HTML element"), style: style }),
React.createElement(RadioButtonLabeled, { Label: [
'Text in an array',
'Only the first value in the array is used',
'The rest of these should be ignored',
], style: style }),
React.createElement(RadioButtonLabeled, { Label: [
React.createElement("span", { key: '1' }, "HTML element in an array"),
React.createElement("span", { key: '2' }, "Again only the first value in the array is used"),
React.createElement("span", { key: '3' }, "The rest should not be rendered"),
], style: style }))));
},
});