@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
17 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/** @jsx withSlots */
var Foundation_1 = require("../../Foundation");
var CollapsibleSectionTitle_1 = require("./CollapsibleSectionTitle");
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