Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/layout

Package Overview
Dependencies
Maintainers
2
Versions
518
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/layout

Chakra UI layout components that give you massive speed

  • 2.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
492K
decreased by-2.07%
Maintainers
2
Weekly downloads
 
Created

What is @chakra-ui/layout?

@chakra-ui/layout is a part of the Chakra UI library that provides a set of layout components to help you build responsive and accessible web applications with ease. It includes components like Box, Flex, Grid, Stack, and more, which are designed to simplify the process of creating complex layouts.

What are @chakra-ui/layout's main functionalities?

Box

The Box component is a versatile container element that can be used to wrap other elements and apply styles to them. It supports various style props for layout, spacing, color, and more.

<Box w='100%' p={4} color='white' bg='blue.500'>This is a Box</Box>

Flex

The Flex component is a flexbox container that allows you to create flexible and responsive layouts. It provides props for controlling the alignment, justification, and direction of its children.

<Flex justify='center' align='center' h='100vh'>Centered Content</Flex>

Grid

The Grid component is a CSS grid container that helps you create grid-based layouts. It supports various props for defining the grid template, gap, and alignment of grid items.

<Grid templateColumns='repeat(3, 1fr)' gap={6}><Box bg='tomato' height='80px'></Box><Box bg='tomato' height='80px'></Box><Box bg='tomato' height='80px'></Box></Grid>

Stack

The Stack component is a layout component that arranges its children in a vertical or horizontal stack with a specified spacing between them. It simplifies the process of creating stacked layouts.

<Stack spacing={4}><Box bg='yellow.200'>Item 1</Box><Box bg='yellow.200'>Item 2</Box><Box bg='yellow.200'>Item 3</Box></Stack>

Other packages similar to @chakra-ui/layout

Keywords

FAQs

Package last updated on 08 Sep 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc