@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
17 lines • 789 B
JavaScript
import * as tslib_1 from "tslib";
/** @jsx withSlots */
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, tslib_1.__assign({}, buttonProps, { ref: props.focusElementRef }),
!props.chevronDisabled && withSlots(Slots.chevron, { iconName: "ChevronDown" }),
withSlots(Slots.text, null)));
};
//# sourceMappingURL=CollapsibleSectionTitle.view.js.map