@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
19 lines • 972 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/** @jsx withSlots */
var office_ui_fabric_react_1 = require("office-ui-fabric-react");
var Utilities_1 = require("office-ui-fabric-react/lib/Utilities");
var Foundation_1 = require("../../Foundation");
exports.CollapsibleSectionTitleView = function (props) {
var Slots = Foundation_1.getSlots(props, {
root: 'button',
chevron: office_ui_fabric_react_1.Icon,
text: office_ui_fabric_react_1.Text
});
var buttonProps = Utilities_1.getNativeProps(props, Utilities_1.buttonProperties);
return (Foundation_1.withSlots(Slots.root, tslib_1.__assign({}, buttonProps, { ref: props.focusElementRef }),
!props.chevronDisabled && Foundation_1.withSlots(Slots.chevron, { iconName: "ChevronDown" }),
Foundation_1.withSlots(Slots.text, null)));
};
//# sourceMappingURL=CollapsibleSectionTitle.view.js.map