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

4.1.1 • Public • Published

Container

Containers are “root” components that limits the width of it's wrapped contents and applies default side gutters. Containers does not apply any styling to its content such as font-family etc.

Usage

Install

npm install @posten-hedwig/container

Import

import { Container } from '@posten-hedwig/container'

Render

<Container>
    This is a default container
</Container>

API

Container slim

This prop tells the container that it should be slim. Boolean. Default: false

<Container slim>
    This is a slim container. Has wider side gutters on desktop. On mobile, the gutters are the same.
</Container>

Container pt

This prop gives responsive padding to the top of the container. Boolean. Default: false

<Container pt>
    This is a container with responsive padding top
</Container>

Container pb

This prop gives responsive padding to the bottom of the container. Boolean. Default: false

<Container pb>
    This is a container with responsive padding bottom
</Container>

Package Sidebar

Install

npm i @posten-hedwig/container

Weekly Downloads

72

Version

4.1.1

License

ISC

Unpacked Size

12.4 kB

Total Files

10

Last publish

Collaborators

  • amitjagtap04
  • harald.vinje
  • hellehi
  • viggooo