0.1.0 • Published 1 year ago
@urban-ui/center v0.1.0
@urban-ui/center
layout | center
Centers content both horizontally and vertically
## Getting started
pnpm add -S @urban-ui/center
import {Center} from '@urban-ui/center'
export function MyComponent() {
return (
<Center css={{size: '$xl'}}>
<h1>Some content</h1>
</Center>
)
}
Details
Wrapper around flex to centralise content.