@urban-ui/center
v0.1.0
Published
Centers content both horizontally and vertically
Downloads
2
Maintainers
Readme
@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.