UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

37 lines 1.31 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { SpinButton } from 'office-ui-fabric-react/lib/SpinButton'; var styles = { root: { width: '400px' } }; var upArrowButtonStyles = { rootChecked: { backgroundColor: 'green' }, rootPressed: { backgroundColor: 'green' } }; var downArrowButtonStyles = { rootChecked: { backgroundColor: 'red' }, rootPressed: { backgroundColor: 'red' } }; var SpinButtonCustomStyledExample = /** @class */ (function (_super) { tslib_1.__extends(SpinButtonCustomStyledExample, _super); function SpinButtonCustomStyledExample() { return _super !== null && _super.apply(this, arguments) || this; } SpinButtonCustomStyledExample.prototype.render = function () { return (React.createElement("div", null, React.createElement(SpinButton, { styles: styles, upArrowButtonStyles: upArrowButtonStyles, downArrowButtonStyles: downArrowButtonStyles, defaultValue: "0", label: 'Custom styled SpinButton:', min: 0, max: 100, step: 1 }))); }; return SpinButtonCustomStyledExample; }(React.Component)); export { SpinButtonCustomStyledExample }; //# sourceMappingURL=SpinButton.CustomStyled.Example.js.map