Import
import { Center } from 'styled-system/jsx'Usage
The Center pattern is used to center the content of a container.
Loading example...
Icon
Center can be used to create frames around icons or numbers.
Loading example...
Center with Inline
Use the inline to change the display to inline-flex.
Loading example...
Square
Square centers its child given the size (width and height).
Loading example...
Circle
Circle centers its child given the size and creates a circle around it.
Loading example...
Props
The Center component accepts the following utility props in addition to style and factory props:
| Prop | Type | Description |
|---|---|---|
inline | boolean | Changes the display to inline-flex. |
size | string | Sets the width and height of the element. |