@another-ui/grid
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

@another-ui/grid

Just another 12-column grid layout for React

Usage

import React from 'react';
import { Column, Row } from '@another-ui/grid';
import '@another-ui/grid/dist/grid.css';

export const Example = () => (
  <Row gutters margins>
    <Column sm={6} md={4} lg={3} xl={2}>
      <p>Column</p>
    </Column>
    <Column sm={6} md={4} lg={3} xl={2}>
      <p>Column</p>
    </Column>
    <Column md={4} lg={6} xl={8}>
      <p>Column</p>
      <Row gutters>
        <Column sm={6}>
          <p>Nested Column</p>
        </Column>
        <Column sm={6} smOffset={6}>
          <p>Nested Column with Offset</p>
        </Column>
      </Row>
    </Column>
  </Row>
);

/@another-ui/grid/

    Package Sidebar

    Install

    npm i @another-ui/grid

    Weekly Downloads

    10

    Version

    0.18.0

    License

    MIT

    Unpacked Size

    21 kB

    Total Files

    26

    Last publish

    Collaborators

    • nghuudan