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

@bedrock-layout/grid

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock-layout/grid

bedrock-layout grid

latest
Source
npmnpm
Version
4.4.4
Version published
Maintainers
1
Created
Source

@bedrock-layout/grid

Grid is a layout helper that creates a responsive grid of items.

Full docs at: bedrock-layout.dev

When to Use

Grid can be used to create a responsive grid layouts that can automatically wrap depending on the number of child elements and a minItemWidth value.

How to install

npm install @bedrock-layout/grid

or

yarn add @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 styling purposes, you can select data-br-grid.

API

* required

PropertyDescriptionTypeDefault
gutter*sets the space between each child elementOne of Spacing**-
minItemWidthsets the min width size of each child elementnumber or valid CSS length as a stringsmall (639px)

** By default, Spacing is one of spacing-constants values, but this can be overwritten using the ThemeProvider from @bedrock-layout/spacing-constants

Keywords

grid

FAQs

Package last updated on 05 May 2025

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