@fluentui/react
Version:
Reusable React components for building web experiences.
25 lines • 1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StackItem = void 0;
var tslib_1 = require("tslib");
var foundation_legacy_1 = require("@fluentui/foundation-legacy");
var Utilities_1 = require("../../../Utilities");
var StackItem_styles_1 = require("./StackItem.styles");
var StackItemView = function (props) {
var children = props.children;
var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties);
// eslint-disable-next-line eqeqeq
if (children == null) {
return null;
}
var Slots = (0, foundation_legacy_1.getSlots)(props, {
root: 'div',
});
return (0, foundation_legacy_1.withSlots)(Slots.root, tslib_1.__assign({}, nativeProps), children);
};
exports.StackItem = (0, foundation_legacy_1.createComponent)(StackItemView, {
displayName: 'StackItem',
styles: StackItem_styles_1.StackItemStyles,
});
exports.default = exports.StackItem;
//# sourceMappingURL=StackItem.js.map