@artifak/container
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@artifak/container

A basic container component. By default has full 100% width and margin 0 auto. All you need to do is specify your max widths.

Usage

Apart from widths, the component also accepts the following style properties:

  • background
  • border
  • color
  • display
  • layout
  • position
  • shadow
  • space
  • typography

Below is a usage example.

import { Container } from 'artifak';

export function Example() {
  return (
    <Container maxWidth={['40em', '52em', '64em', '80em']}>
      <>
        <p>Hello World</p>
      </>
    </Container>
  );
}

Package Sidebar

Install

npm i @artifak/container

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

121 kB

Total Files

10

Last publish

Collaborators

  • heyjules