UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

31 lines (28 loc) 610 B
"use strict"; "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 };