New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@bedrock-layout/grid

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock-layout/grid

bedrock-layout grid

2.0.11
Version published
Weekly downloads
380
-10.38%
Maintainers
1
Weekly downloads
 
Created

@bedrock-layout/grid

Layout helper that creates Grid of items

Full docs at: bedrock-layout.dev

When to Use

Used to create a grid layouts

How to install

npm install @bedrock-layout/grid

Usage

import Grid from '@bedrock-layout/grid';

<Grid minItemWidth={300}>
  <div>1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
  <div>5</div>
  <div>6</div>
</Grid>;

data-attribute

For purposes of styling you can select data-bedrock-layout-grid.

API

* required

PropertyDescriptionTypeDefault
gutter*sets space inbetween each elementone of spacing**-
minItemWidthmin width in px of each grid itemnumber or valid CSS length as a stringbreakPoints.smallOnly

** By default, spacings are one of the spacing-constants, but can be overridden using the ThemeProvider from styled-components

FAQs

Package last updated on 16 Jun 2021

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