carbon-react
Version:
A library of reusable React components and an interface for easily building user interfaces based on Flux.
42 lines (34 loc) • 1.3 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('menu-item', _2.default, {
description: '[content needed] Basic example of the component',
designerNotes: '[content needed] Basic designs description for the component',
propTypes: {
alternate: "Boolean",
divide: "Boolean",
href: "String",
selected: "Boolean",
submenu: "String",
submenuDirection: "String",
target: "String",
to: "String"
},
propDescriptions: {
alternate: "Applies an alternate styling for the item.",
divide: "Applies a dividing line above an item.",
href: "A href to link the menu item to.",
selected: "Applies styling to suggest this item is selected.",
submenu: "Text for the menu item if the children are a submenu.",
submenuDirection: "Direction for the submenu to align.",
target: "Target for the link (eg. _blank)",
to: "A React Router link for the menu item."
}
});
exports.default = definition;