0.15.0 • Published 4 years ago

@naturacosmeticos/natds-react-container v0.15.0

Weekly downloads
66
License
ISC
Repository
github
Last release
4 years ago

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>
)
0.14.0

4 years ago

0.15.0

4 years ago

0.14.1

4 years ago

0.13.0

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.2

4 years ago

0.10.3

4 years ago

0.10.0

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago