UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

27 lines 2.69 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { ExampleCard, ComponentPage, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base'; import { ToggleBasicExample } from './examples/Toggle.Basic.Example'; import { ToggleAriaLabelExample } from './examples/Toggle.AriaLabel.Example'; import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus'; import { ToggleStatus } from './Toggle.checklist'; var ToggleBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Toggle/examples/Toggle.Basic.Example.tsx'); var ToggleAriaLabelExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Toggle/examples/Toggle.AriaLabel.Example.tsx'); var TogglePage = /** @class */ (function (_super) { tslib_1.__extends(TogglePage, _super); function TogglePage() { return _super !== null && _super.apply(this, arguments) || this; } TogglePage.prototype.render = function () { return (React.createElement(ComponentPage, { title: 'Toggle', componentName: 'ToggleExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/Toggle', exampleCards: React.createElement("div", null, React.createElement(ExampleCard, { title: 'Default Toggles', code: ToggleBasicExampleCode }, React.createElement(ToggleBasicExample, null)), React.createElement(ExampleCard, { title: 'Toggle with specialized aria labels for the screen-reader to announce when the toggle is on and off', code: ToggleAriaLabelExampleCode }, React.createElement(ToggleAriaLabelExample, null))), allowNativeProps: true, nativePropsElement: 'input', propertiesTables: React.createElement(PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Toggle/Toggle.types.ts') ] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Toggle/docs/ToggleOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Toggle/docs/ToggleDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Toggle/docs/ToggleDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, ToggleStatus)) })); }; return TogglePage; }(React.Component)); export { TogglePage }; //# sourceMappingURL=TogglePage.js.map