@teambit/base-ui.layout.grid-component
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Grid Component

Basic grid element for 1-12 columns. Accepts all props of native html div element.

import { grid } from '@bit/bit.base-ui.layout.grid-component';

//...

<Grid col={2}>
	<div>column 1</div>
	<div>column 2</div>
</Grid>;

It has built in responsive support, using it's colX props:

//single column by default, 2 columns for large screens:
<Grid col={1} colL={2}>
	<div>column 1</div>
	<div>column 2</div>
</Grid>

breakpoints:

  • col (all)
  • colXs 360px
  • colSm 480px
  • colMd 768px
  • colL 920px
  • colLg 1080px
  • colXl 1440px

Readme

Keywords

none

Package Sidebar

Install

npm i @teambit/base-ui.layout.grid-component

Weekly Downloads

584

Version

1.0.2

License

SEE LICENSE IN LICENSE

Unpacked Size

22.1 kB

Total Files

26

Last publish

Collaborators

  • learn-bit
  • teambit-owner
  • shohamgilad
  • davidfirst
  • lalybar
  • ranm8
  • odedre
  • guysaar
  • itaymendel
  • erezbit
  • joshk2
  • redigma
  • yona007
  • jonisar
  • ocombe