UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

33 lines 3.14 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { ExampleCard, ComponentPage, PropertiesTableSet } from '@uifabric/example-app-base'; import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus'; import { BreadcrumbStatus } from './Breadcrumb.checklist'; import { BreadcrumbBasicExample } from './examples/Breadcrumb.Basic.Example'; import { BreadcrumbStaticExample } from './examples/Breadcrumb.Static.Example'; var BreadcrumbBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Breadcrumb/examples/Breadcrumb.Basic.Example.tsx'); var BreadcrumbStaticExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Breadcrumb/examples/Breadcrumb.Static.Example.tsx'); var BreadcrumbPage = /** @class */ (function (_super) { tslib_1.__extends(BreadcrumbPage, _super); function BreadcrumbPage() { return _super !== null && _super.apply(this, arguments) || this; } BreadcrumbPage.prototype.render = function () { return (React.createElement(ComponentPage, { title: 'Breadcrumb', componentName: 'BreadcrumbExample', exampleCards: React.createElement("div", null, React.createElement(ExampleCard, { title: 'Default Breadcrumb', code: BreadcrumbBasicExampleCode }, React.createElement(BreadcrumbBasicExample, null)), React.createElement(ExampleCard, { title: 'Breadcrumb with static width ', code: BreadcrumbStaticExampleCode }, React.createElement(BreadcrumbStaticExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Breadcrumb/Breadcrumb.types.ts') ] }), overview: React.createElement("div", null, React.createElement("p", null, "Breadcrumbs should be used as a navigational aid in your app or site. They indicate the current page\u2019s location within a hierarchy and help the user understand where they are in relation to the rest of that hierarchy. They also afford one-click access to higher levels of that hierarchy."), React.createElement("p", null, "Breadcrumbs are typically placed, in horizontal form, under the masthead or navigation of an experience, above the primary content area.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Place Breadcrumbs at the top of a page, above a list of items, or above the main content of a page."))), donts: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Don't use Breadcrumbs as a primary way to navigate an app or site."))), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, BreadcrumbStatus)) })); }; return BreadcrumbPage; }(React.Component)); export { BreadcrumbPage }; //# sourceMappingURL=BreadcrumbPage.js.map