UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

16 lines 1.07 kB
define(["require", "exports", "../../Foundation", "./CollapsibleSectionTitle"], function (require, exports, Foundation_1, CollapsibleSectionTitle_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CollapsibleSectionView = function (props) { var collapsed = props.collapsed, titleElementRef = props.titleElementRef, children = props.children, onClick = props.onClick, onKeyDown = props.onKeyDown, indent = props.indent; var Slots = Foundation_1.getSlots(props, { root: 'div', title: CollapsibleSectionTitle_1.CollapsibleSectionTitle, body: 'div' }); return (Foundation_1.withSlots(Slots.root, { onKeyDown: props.onRootKeyDown }, Foundation_1.withSlots(Slots.title, { collapsed: props.collapsed, focusElementRef: titleElementRef, onClick: onClick, onKeyDown: onKeyDown, indent: indent }), !collapsed && Foundation_1.withSlots(Slots.body, null, children))); }; }); //# sourceMappingURL=CollapsibleSection.view.js.map