UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

15 lines 862 B
/** @jsx withSlots */ import { withSlots, getSlots } from '../../Foundation'; import { CollapsibleSectionTitle } from './CollapsibleSectionTitle'; export var CollapsibleSectionView = function (props) { var collapsed = props.collapsed, titleElementRef = props.titleElementRef, children = props.children, onClick = props.onClick, onKeyDown = props.onKeyDown, indent = props.indent; var Slots = getSlots(props, { root: 'div', title: CollapsibleSectionTitle, body: 'div' }); return (withSlots(Slots.root, { onKeyDown: props.onRootKeyDown }, withSlots(Slots.title, { collapsed: props.collapsed, focusElementRef: titleElementRef, onClick: onClick, onKeyDown: onKeyDown, indent: indent }), !collapsed && withSlots(Slots.body, null, children))); }; //# sourceMappingURL=CollapsibleSection.view.js.map