carbon-react
Version:
A library of reusable React components and an interface for easily building user interfaces based on Flux.
36 lines (27 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ = require('./');
var _2 = _interopRequireDefault(_);
var _definition = require('./../../../demo/utils/definition');
var _definition2 = _interopRequireDefault(_definition);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var definition = new _definition2.default('radio-button', _2.default, {
description: 'Selects one option from a longer list.',
designerNotes: '\n* Consider \u2018smart default\u2019 selections, based on what your user is likely to choose. But, users may well leave the defaults in place, so make sure any consequences are easy to undo, and not harmful.\n* Useful to show less than about 10 options.\n* Disabled or read-only radio buttons might be difficult for a user to distinguish visually, so try to avoid this.\n ',
relatedComponentsNotes: '\n* Choosing one option from a very long list? [Try Dropdown](/components/dropdown).\n* Choosing more than one option? [Try Checkbox](/components/checkbox).\n* Choosing one option from a highly visible small range? [Try Button Toggle](/components/button-toggle).\n ',
type: 'form',
numberOfExamples: 2,
propTypes: {
reverse: 'Boolean'
},
propValues: {
name: "example"
},
propDescriptions: {
reverse: 'Flips the input and label render order'
}
});
definition.isAnInput();
exports.default = definition;