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

0.15.0 • Public • Published

Container

The container centers your content horizontally. It's most the basic layout element.

While containers can be nested, most layouts do not require a nested container.

Import

import { Container } from "@naturacosmeticos/natds-react"
// or
import Container from "@naturacosmeticos/natds-react-container"

Usage

Fluid

A fluid container with is bounded by the maxWidth property value.

import React from "react";
import { Container } from "@naturacosmeticos/natds-web";

export const FluidContainerExample = () => (
  <Container maxWidth={"sm"}>Example content here</Container>
)

Fixed

If you prefer to design for a fixed set of sizes instead of trying to accommodate a fully fluid viewport, you can set the fixed property. The max-width matches the min-width of the current breakpoint.

import React from "react";
import { Container } from "@naturacosmeticos/natds-web";

export const FixedContainerExample = () => (
  <Container fixed>Example content here</Container>
)

Package Sidebar

Install

npm i @naturacosmeticos/natds-react-container

Weekly Downloads

11

Version

0.15.0

License

ISC

Unpacked Size

678 kB

Total Files

14

Last publish

Collaborators

  • marcelofabricanti
  • designsystemnatura
  • mukaportes
  • vicentelyrio
  • robert-lichtnow
  • douglasofreitas
  • jimmyandrade
  • lauralucca
  • marcelsaitonatura
  • eliisrael