@carbon/react
Version:
React components for the Carbon Design System
24 lines (19 loc) • 746 B
JavaScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
;
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
var React = require('react');
var Stack = require('./Stack.js');
// eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
const HStack = /*#__PURE__*/React.forwardRef((props, ref) => {
return /*#__PURE__*/React.createElement(Stack.Stack, _rollupPluginBabelHelpers.extends({}, props, {
ref: ref,
orientation: "horizontal"
}));
});
HStack.propTypes = Stack.Stack.propTypes;
exports.HStack = HStack;