JSPM

@watheia/micro.base-ui.layout.grid-component

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23283F
  • License EPL-2.0

Package Exports

  • @watheia/micro.base-ui.layout.grid-component

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@watheia/micro.base-ui.layout.grid-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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