@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
33 lines (30 loc) • 641 B
JavaScript
;
"use client";
import { jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { Box } from '../box/index.js';
const Square = forwardRef(
function Square2(props, ref) {
const { size, ...rest } = props;
return /* @__PURE__ */ jsx(
Box,
{
...rest,
ref,
boxSize: size,
css: [
{
display: "flex",
alignItems: "center",
justifyContent: "center",
flexShrink: 0,
flexGrow: 0
},
props.css
]
}
);
}
);
Square.displayName = "Square";
export { Square };