restack is a port of the VStack
and HStack
concepts from SwiftUI. Simple, composable application layouts.
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.