UNPKG

cosmo-ui

Version:
27 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var web_1 = require("../web"); var doNothing = function (e) { return e.preventDefault(); }; var DropdownExample = (function (_super) { tslib_1.__extends(DropdownExample, _super); function DropdownExample() { return _super !== null && _super.apply(this, arguments) || this; } DropdownExample.prototype.render = function () { return (React.createElement(web_1.Column, { fullWidth: true, style: { backgroundColor: '#1d93d2', color: 'white', boxSizing: 'border-box', padding: '20px', } }, React.createElement("h2", null, "Demo dropdowns"), React.createElement(web_1.Dropdown, { name: "exampleDropdown" }, React.createElement(web_1.DropdownItem, { id: "randomDropdownId", active: true, onClick: doNothing }, "active"), React.createElement(web_1.DropdownItem, { active: false, onClick: doNothing }, "not active")))); }; return DropdownExample; }(React.Component)); exports.DropdownExample = DropdownExample; //# sourceMappingURL=dropdown-example.js.map