0.5.0 • Published 12 months ago

layouts-rc v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Layouts-rc

React component library for layouts.

Inspired by flutter layout widgets.(link)

  • Typesafe
  • with tailwindcss - 👌
  • with CSS in js - 👌
  • with css-modules - 👌

Install

npm install layouts-rc

Style apply

import 'layouts-rc/styles.css'; // top
import './globals.css';

Usage

import {
  SlotBaseComp,
  Scaffold,
  ScaffoldHeader,
  ScaffoldBody,
  ScaffoldFooter,
  Row,
  Column,
  Center,
} from 'layouts-rc';

SlotBaseComp

slot: DOCS

<SlotBaseComp asChild>
    <button>button</button>
</SlotBaseComp>

// or

<SlotBaseComp as={"button"}>button</SlotBaseComp>

Rest Component (Scaffold, Column, Row, Center)

Demo

Props

Common props

PropTypeDefault
asstring"div"
asChildboolean-

Row & Column Component props

PropTypeDefault
gapstring|number-
justifycss(justifyContent)-
itemscss(alignItems)-
0.5.0

12 months ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago