UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

16 lines 1.01 kB
define(["require", "exports", "tslib", "office-ui-fabric-react", "office-ui-fabric-react/lib/Utilities", "../../Foundation"], function (require, exports, tslib_1, office_ui_fabric_react_1, Utilities_1, Foundation_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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