UNPKG

jiro-ui

Version:

A Mithril.js UI library based from construct-ui

15 lines (14 loc) 455 B
import { __assign } from "tslib"; import m from 'mithril'; import { Classes } from '../../_shared'; import { BaseControl } from '../base-control'; var Switch = /** @class */ (function () { function Switch() { } Switch.prototype.view = function (_a) { var attrs = _a.attrs; return m(BaseControl, __assign(__assign({}, attrs), { type: 'checkbox', typeClass: Classes.SWITCH })); }; return Switch; }()); export { Switch };