Fidely UI v1 beta is now available!. 🚀

Center

Used to center elements.

Box One

Usage

import { Center } from '@fidely-ui/react'
<Center>Hey there</Center>

Examples

With Height

Box One

With Image

John Doe

Inline

Use the inline prop to make Center behave like an inline element (display: inline-flex) instead of a block-level element (display: flex). This makes Center only take up as much width as its content needs, allowing it to fit inside links, buttons, or other inline contexts without breaking the layout.

Box One

Props

The center component accepts the following properties:

inline: Whether to use inline-flex or flex for the container. The value is a boolean.

On this page