This package has been deprecated

Author message:

Please consider alternatives to cf-component-viewport

cf-component-layout

1.2.1 • Public • Published

cf-component-layout

Cloudflare Layout Component

Installation

$ npm install cf-component-layout

Usage

import React from 'react';
import { LayoutContainer, LayoutRow, LayoutColumn } from 'cf-component-layout';
 
const LayoutComponent = () => (
  <LayoutContainer>
    <LayoutRow>
      <LayoutColumn width={1 / 2}><p>Column 1/2</p></LayoutColumn>
      <LayoutColumn width={1 / 2}><p>Column 1/2</p></LayoutColumn>
    </LayoutRow>
 
    <LayoutRow>
      <LayoutColumn width={1 / 3}><p>Column 1/3</p></LayoutColumn>
      <LayoutColumn width={1 / 3}><p>Column 1/3</p></LayoutColumn>
      <LayoutColumn width={1 / 3}><p>Column 1/3</p></LayoutColumn>
    </LayoutRow>
 
    <LayoutRow>
      <LayoutColumn width={1 / 4}><p>Column 1/4</p></LayoutColumn>
      <LayoutColumn width={1 / 4}><p>Column 1/4</p></LayoutColumn>
      <LayoutColumn width={1 / 4}><p>Column 1/4</p></LayoutColumn>
      <LayoutColumn width={1 / 4}><p>Column 1/4</p></LayoutColumn>
    </LayoutRow>
 
    <LayoutRow>
      <LayoutColumn width={1 / 4}><p>Column 1/4</p></LayoutColumn>
      <LayoutColumn width={2 / 4}><p>Column 2/4</p></LayoutColumn>
      <LayoutColumn width={1 / 4}><p>Column 1/4</p></LayoutColumn>
    </LayoutRow>
  </LayoutContainer>
);
 
export default LayoutComponent;

Readme

Keywords

none

Package Sidebar

Install

npm i cf-component-layout

Weekly Downloads

240

Version

1.2.1

License

BSD-3-Clause

Last publish

Collaborators

  • lerwincf
  • lbarthonet
  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga