UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

24 lines 1.48 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { FocusZone } from 'office-ui-fabric-react/lib/FocusZone'; // TODO: move this file to Accordion import { Accordion } from '@uifabric/experiments/lib/Accordion'; var CollapsibleSectionAccordionExample = /** @class */ (function (_super) { tslib_1.__extends(CollapsibleSectionAccordionExample, _super); function CollapsibleSectionAccordionExample() { return _super !== null && _super.apply(this, arguments) || this; } CollapsibleSectionAccordionExample.prototype.render = function () { return (React.createElement("div", null, React.createElement(FocusZone, null, React.createElement("p", null, "TODO: Add styling and state control so that only one item is expanded at a time"), React.createElement(Accordion, null, React.createElement(Accordion.Item, { title: "Title 1" }, "Accordion Item 1!"), React.createElement(Accordion.Item, { title: "Title 2" }, "Accordion Item 2!"), React.createElement(Accordion.Item, { title: "Title 3" }, "Accordion Item 4!"), React.createElement(Accordion.Item, { title: "Title 4" }, "Accordion Item 4!"))))); }; return CollapsibleSectionAccordionExample; }(React.Component)); export { CollapsibleSectionAccordionExample }; //# sourceMappingURL=CollapsibleSection.Accordion.Example.js.map