An open API service indexing awesome lists of open source software.

https://github.com/bfollington/restack

SwiftUI inspired layouts for React
https://github.com/bfollington/restack

emotion flexbox hstack react swiftui typescript vstack

Last synced: 11 months ago
JSON representation

SwiftUI inspired layouts for React

Awesome Lists containing this project

README

          



[![Version](https://img.shields.io/npm/v/@twopm/restack?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/@twopm/restack)
[![Twitter](https://img.shields.io/twitter/follow/vivavolt?label=%40vivavolt&style=flat&colorA=000000&colorB=000000&logo=twitter&logoColor=000000)](https://twitter.com/vivavolt)
[![Donate (ETH)](https://img.shields.io/badge/Donate-(ETH)-f5f5f5?style=flat&colorA=000000&colorB=000000)](https://blockchain.com/eth/address/0x981e493b795A7a28c43Bf8d7a8E125C419435Fa7)
[![Donate ($)](https://img.shields.io/badge/Donate-($)-f5f5f5?style=flat&colorA=000000&colorB=000000)](https://ko-fi.com/vivavolt)
![Language](https://img.shields.io/github/languages/top/bfollington/restack?style=flat&colorA=000000&colorB=000000)
![License](https://img.shields.io/github/license/bfollington/restack?style=flat&colorA=000000&colorB=000000)
![Bundle Size](https://img.shields.io/bundlephobia/min/@twopm/restack?style=flat&colorA=000000&colorB=000000)

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

👁  Live Demo

## Install

```sh
yarn add @twopm/restack
```

## Usage

```tsx
import { VStack } from '@twopm/restack'

const App = () => (

One


Two


Three



)
```

See the [storybook examples](https://github.com/bfollington/restack/blob/master/src/stories/MiniApp.tsx) for more or view the [live demo](
https://restack.netlify.app/).