This library is still in development and is available only for internal usage at VTEX.
Skip to main content

Center

Center

Version: 0.136.0

Center

Center is a layout component that centers its child within itself.

Usage

import { Center } from '@vtex/admin-ui'

function Example() {
return <Center>{/* content */}</Center>
}

Examples

Centralized

To ensure the child is centered, put any child element inside and give it any width and/or height.

Loading...

Props

It accepts every prop of div