@urban-ui/center
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@urban-ui/center

layout | center

npm minzip size License

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.

Package Sidebar

Install

npm i @urban-ui/center

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

18 kB

Total Files

8

Last publish

Collaborators

  • mattstyles