UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Microsoft 365.

16 lines 744 B
import { __assign } from "tslib"; import { Icon, Text } from 'office-ui-fabric-react'; import { getNativeProps, buttonProperties } from 'office-ui-fabric-react/lib/Utilities'; import { withSlots, getSlots } from '../../Foundation'; export var CollapsibleSectionTitleView = function (props) { var Slots = getSlots(props, { root: 'button', chevron: Icon, text: Text, }); var buttonProps = getNativeProps(props, buttonProperties); return (withSlots(Slots.root, __assign({}, buttonProps, { ref: props.focusElementRef }), !props.chevronDisabled && withSlots(Slots.chevron, { iconName: "ChevronDown" }), withSlots(Slots.text, null))); }; //# sourceMappingURL=CollapsibleSectionTitle.view.js.map