import * as tslib_1 from "tslib";
import * as React from 'react';
import { Slider } from 'office-ui-fabric-react/lib/Slider';
import { Stack } from 'office-ui-fabric-react/lib/Stack';
// tslint:disable:jsx-no-lambda
var SliderBasicExample = /** @class */ (function (_super) {
    tslib_1.__extends(SliderBasicExample, _super);
    function SliderBasicExample() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.state = { value: 0 };
        return _this;
    }
    SliderBasicExample.prototype.render = function () {
        var _this = this;
        var stackTokens = { childrenGap: 20 };
        return (React.createElement(Stack, { tokens: stackTokens, styles: { root: { maxWidth: 300 } } },
            React.createElement(Slider, null),
            React.createElement(Slider, { label: "Snapping slider example", min: 0, max: 50, step: 10, defaultValue: 20, showValue: true, onChange: function (value) { return console.log(value); }, snapToStep: true }),
            React.createElement(Slider, { label: "Disabled example", min: 50, max: 500, step: 50, defaultValue: 300, showValue: true, disabled: true }),
            React.createElement(Slider, { label: "Controlled example", max: 10, value: this.state.value, onChange: function (value) { return _this.setState({ value: value }); }, showValue: true }),
            React.createElement(Slider, { label: "Example with formatted value", max: 100, ariaValueText: function (value) { return value + " percent"; }, valueFormat: function (value) { return value + "%"; }, showValue: true }),
            React.createElement(Slider, { label: "Origin from zero", min: -5, max: 5, step: 1, defaultValue: 2, showValue: true, originFromZero: true })));
    };
    return SliderBasicExample;
}(React.Component));
export { SliderBasicExample };
//# sourceMappingURL=Slider.Basic.Example.js.map