Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.9 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.9 KB


Version Twitter Donate (ETH) Donate ($) Language License Bundle Size

restack is a port of the VStack and HStack concepts from SwiftUI. Simple, composable application layouts.

👁  Live Demo

Install

yarn add @twopm/restack

Usage

import { VStack } from '@twopm/restack'

const App = () => (
  <VStack
    horizontal="center"
    vertical="distribute-edges"
    spacing={10}
  >
    <p>One</p>
    <p>Two</p>
    <p>Three</p>
  </VStack>
)

See the storybook examples for more or view the live demo.