Skip to content
Layout

Center

Centers children horizontally and vertically.

Center

Centers children horizontally and vertically.

Examples

Default

Centered

Demo.tsxtsx
import { Center, Text } from '@var-ui/react';

<Center style={{ height: '120px', border: '1px dashed var(--color-border)' }}>
  <Text>Centered</Text>
</Center>

Props

Accessibility

Built on React Aria Components where applicable.