Center

A Box that centers its children on both axes.

Perfectly centered, both axes

Import#

import { Center } from "astralis-ui";

Usage#

Center is display: flex; align-items: center; justify-content: center as a component — no props to remember. Give it a size and it becomes the standard recipe for icon chips, avatars and count badges.

42 stars

Props#

Center adds no props of its own — it accepts everything Box does (size, bg, rounded, as, …).