four-way-grid

v1.0.6arrow_drop_down
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
2,076
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
3 KB
A a pure CSS component, let the preset arrange your grid elements!
1 contributor
Install four-way-grid as a package?
Copied
npm i @bit/bit.base-ui.layout.grid-presets.four-way-grid
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
fourWayGrid ()

A a pure CSS component, let the preset arrange your grid elements!

Default view:

 <text-1>
 <image-1>
 <text-2>
 <image-2>
 <text-3>
 <image-3>
 <text-4>
 <image-4>

Tablet:

image-1 text-1
image-2 text-2
image-3 text-3
image-4 text-4

Desktop:

image-1 image-2
text-1  text-2
image-3 image-4
text-3  text-4
Example
<Grid className={fourWayGrid}>
  <div>element 1</div>
  <image src={1}>
  <div>element 2</div>
  <image src={2}>
  <div>element 3</div>
  <image src={3}>
  <div>element 4</div>
  <image src={4}>
</Grid>
Help and resources