office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
17 lines • 988 B
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { PrimaryButton } from 'office-ui-fabric-react/lib/Button';
var ButtonScreenReaderExample = /** @class */ (function (_super) {
tslib_1.__extends(ButtonScreenReaderExample, _super);
function ButtonScreenReaderExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
ButtonScreenReaderExample.prototype.render = function () {
var _a = this.props, disabled = _a.disabled, checked = _a.checked;
return (React.createElement("div", { className: 'ms-BasicButtonsExample' },
React.createElement(PrimaryButton, { "data-automation-id": 'test', disabled: disabled, checked: checked, ariaDescription: 'This is aria description used for screen reader.' }, "Aria Description")));
};
return ButtonScreenReaderExample;
}(React.Component));
export { ButtonScreenReaderExample };
//# sourceMappingURL=Button.ScreenReader.Example.js.map