Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cf-component-layout

Package Overview
Dependencies
Maintainers
15
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-layout

Cloudflare Layout Component

latest
npmnpm
Version
1.2.1
Version published
Maintainers
15
Created
Source

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;

FAQs

Package last updated on 19 Apr 2017

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