--- title: Center description: Used to center its child within itself. links: source: components/center storybook: layout-center--basic --- ## Usage ```jsx import { AbsoluteCenter, Center, Circle, Square } from "@chakra-ui/react" ``` ```jsx
This is the Center
``` ## Examples ### Icon Center can be used to create frames around icons or numbers. ### Center with Inline Use the `inline` to change the display to `inline-flex`. ### Square `Square` centers its child given the `size` (width and height). ### Circle `Circle` centers its child given the `size` and creates a circle around it. ### AbsoluteCenter `AbsoluteCenter` centers relative to its parent using the `position: absolute` strategy. Pass the `axis` prop to change the axis of alignment. ## Props ### AbsoluteCenter