ruki-react-layouts
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

react-ruki-layouts

Columns, Rows, Stacks and more

NPM JavaScript Style Guide

Install

npm install --save react-ruki-layouts

Usage

import React from 'react'
import { Row, Column, Stack, Alignment } from "ruki-react-layouts";
export default function App() {
  return (
    <div className="App">
      <h5>ROW</h5>
      <Row style={{ width: "100%" }} alignment={Alignment.spaceBetween}>
        <div
          style={{ width: "100px", height: "100px", backgroundColor: "red" }}
        />

        <div
          style={{ width: "100px", height: "100px", backgroundColor: "red" }}
        />

        <div
          style={{ width: "100px", height: "100px", backgroundColor: "red" }}
        />
      </Row>
      <h5>Column</h5>
      <Column
        style={{ width: "100%", height: 400 }}
        alignment={Alignment.spaceBetween}
      >
        <div
          style={{ width: "100px", height: "100px", backgroundColor: "blue" }}
        />

        <div
          style={{ width: "100px", height: "100px", backgroundColor: "blue" }}
        />

        <div
          style={{ width: "100px", height: "100px", backgroundColor: "blue" }}
        />
      </Column>
      <h5>Stack</h5>
      <Stack
        style={{ width: "100%", height: 400 }}
        alignment={Alignment.spaceBetween}
      >
        <div
          style={{ width: "300px", height: "300px", backgroundColor: "blue" }}
        />

        <div
          style={{ width: "200px", height: "200px", backgroundColor: "red" }}
        />

        <div
          style={{ width: "100px", height: "100px", backgroundColor: "green" }}
        />
      </Stack>
    </div>
  );
}

License

MIT © Ruki

Readme

Keywords

none

Package Sidebar

Install

npm i ruki-react-layouts

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

34.4 kB

Total Files

14

Last publish

Collaborators

  • ollie2224