Layout
Center
Flex container that centers its children on both axes. The smallest possible 'make this thing live in the middle' wrapper.
Examples
Centered content
Centered
<Center style="height:140px;">
<Badge variant="accent">Centered</Badge>
</Center>Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | — | Extra classes; merged via cn(). |
...rest | HTMLAttributes<HTMLDivElement> | — | Spread onto the underlying <div>. |
Install
CLI
npx @a3tai/mittsu add center