@wq/material-web
Version:
Web bindings for @wq/material
23 lines (22 loc) • 556 B
JavaScript
import React from "react";
import { Box } from "@mui/material";
import PropTypes from "prop-types";
export default function HorizontalView({ children, ...rest }) {
return /*#__PURE__*/ React.createElement(
Box,
{
...rest,
sx: {
display: "flex",
justifyContent: "space-between",
alignItems: "center",
p: 1,
...rest.sx,
},
},
children
);
}
HorizontalView.propTypes = {
children: PropTypes.node,
};