UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Microsoft 365.

18 lines 942 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var office_ui_fabric_react_1 = require("office-ui-fabric-react"); var Utilities_1 = require("office-ui-fabric-react/lib-commonjs/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