UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

18 lines 1.01 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { SearchBox } from 'office-ui-fabric-react/lib/SearchBox'; import './SearchBox.Examples.scss'; // tslint:disable:jsx-no-lambda var SearchBoxCustomIconExample = /** @class */ (function (_super) { tslib_1.__extends(SearchBoxCustomIconExample, _super); function SearchBoxCustomIconExample() { return _super !== null && _super.apply(this, arguments) || this; } SearchBoxCustomIconExample.prototype.render = function () { return (React.createElement("div", { className: "ms-SearchBoxExample" }, React.createElement(SearchBox, { placeholder: "Filter", onFocus: function () { return console.log('onFocus called'); }, onBlur: function () { return console.log('onBlur called'); }, iconProps: { iconName: 'Filter' } }))); }; return SearchBoxCustomIconExample; }(React.Component)); export { SearchBoxCustomIconExample }; //# sourceMappingURL=SearchBox.CustomIcon.Example.js.map