office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
107 lines • 6.62 kB
JavaScript
import * as React from 'react';
import { PivotBasicExample } from './examples/Pivot.Basic.Example';
import { PivotIconCountExample } from './examples/Pivot.IconCount.Example';
import { PivotLargeExample } from './examples/Pivot.Large.Example';
import { PivotTabsExample } from './examples/Pivot.Tabs.Example';
import { PivotTabsLargeExample } from './examples/Pivot.TabsLarge.Example';
import { PivotOnChangeExample } from './examples/Pivot.OnChange.Example';
import { PivotRemoveExample } from './examples/Pivot.Remove.Example';
import { PivotOverrideExample } from './examples/Pivot.Override.Example';
import { PivotSeparateExample } from './examples/Pivot.Separate.Example';
import { PivotSeparateNoSelectedKeyExample } from './examples/Pivot.SeparateNoSelectedKey.Example';
var PivotRemoveExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Remove.Example.tsx');
var PivotRemoveExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Remove.Example.tsx');
var PivotBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Basic.Example.tsx');
var PivotBasicExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Basic.Example.tsx');
var PivotLargeExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Large.Example.tsx');
var PivotLargeExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Large.Example.tsx');
var PivotTabsExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Tabs.Example.tsx');
var PivotTabsExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Tabs.Example.tsx');
var PivotTabsLargeExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.TabsLarge.Example.tsx');
var PivotTabsLargeExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.TabsLarge.Example.tsx');
var PivotOnChangeExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.OnChange.Example.tsx');
var PivotOnChangeExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.OnChange.Example.tsx');
var PivotIconCountExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.IconCount.Example.tsx');
var PivotIconCountExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.IconCount.Example.tsx');
var PivotOverrideExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Override.Example.tsx');
var PivotOverrideExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Override.Example.tsx');
var PivotSeparateExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Separate.Example.tsx');
var PivotSeparateExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Separate.Example.tsx');
var PivotNoSelectedKeyExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.SeparateNoSelectedKey.Example.tsx');
var PivotNoSelectedKeyExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.SeparateNoSelectedKey.Example.tsx');
export var PivotPageProps = {
title: 'Pivot',
componentName: 'Pivot',
componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/Pivot',
examples: [
{
title: 'Default Pivot',
code: PivotBasicExampleCode,
codepenJS: PivotBasicExampleCodepen,
view: React.createElement(PivotBasicExample, null)
},
{
title: 'Count and Icon',
code: PivotIconCountExampleCode,
codepenJS: PivotIconCountExampleCodepen,
view: React.createElement(PivotIconCountExample, null)
},
{
title: 'Large link size',
code: PivotLargeExampleCode,
codepenJS: PivotLargeExampleCodepen,
view: React.createElement(PivotLargeExample, null)
},
{
title: 'Links of tab style',
code: PivotTabsExampleCode,
codepenJS: PivotTabsExampleCodepen,
view: React.createElement(PivotTabsExample, null)
},
{
title: 'Links of large tab style',
code: PivotTabsLargeExampleCode,
codepenJS: PivotTabsLargeExampleCodepen,
view: React.createElement(PivotTabsLargeExample, null)
},
{
title: 'Trigger onchange event',
code: PivotOnChangeExampleCode,
codepenJS: PivotOnChangeExampleCodepen,
view: React.createElement(PivotOnChangeExample, null)
},
{
title: 'Show/Hide pivot item',
code: PivotRemoveExampleCode,
codepenJS: PivotRemoveExampleCodepen,
view: React.createElement(PivotRemoveExample, null)
},
{
title: 'Override selected item',
code: PivotOverrideExampleCode,
codepenJS: PivotOverrideExampleCodepen,
view: React.createElement(PivotOverrideExample, null)
},
{
title: 'Render content separately',
code: PivotSeparateExampleCode,
codepenJS: PivotSeparateExampleCodepen,
view: React.createElement(PivotSeparateExample, null)
},
{
title: 'No pivots selected',
code: PivotNoSelectedKeyExampleCode,
codepenJS: PivotNoSelectedKeyExampleCodepen,
view: React.createElement(PivotSeparateNoSelectedKeyExample, null)
}
],
overview: require('!raw-loader!office-ui-fabric-react/src/components/Pivot/docs/PivotOverview.md'),
bestPractices: '',
dos: require('!raw-loader!office-ui-fabric-react/src/components/Pivot/docs/PivotDos.md'),
donts: require('!raw-loader!office-ui-fabric-react/src/components/Pivot/docs/PivotDonts.md'),
isHeaderVisible: true,
isFeedbackVisible: true,
allowNativePropsForComponentName: 'PivotItem',
allowNativeProps: true
};
//# sourceMappingURL=Pivot.doc.js.map