🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@naturacosmeticos/natds-react-container

Package Overview
Dependencies
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturacosmeticos/natds-react-container

Container component for React web by Natura Design System

latest
Source
npmnpm
Version
0.15.0
Version published
Maintainers
9
Created
Source

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

Keywords

container

FAQs

Package last updated on 28 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts