Stack
A helper to make it easier to set up vertical flexbox layouts. Ie. ones that have
flex-direction set to column.Tip: Check out Josh W. Comeau's excellent post An Interactive Guide to Flexbox.
top
middle
bottom
import { Stack } from "rfui-package";Basic
top
middle
bottom
<Stack className="gap-5">
<div>top</div>
<div>middle</div>
<div>bottom</div>
</Stack>Props
| Prop | Required | Default | Type and notes |
|---|---|---|---|
children | - | | |
...rest | - | - | See the docs for rest parameters. For Stack, you could pass anything you normally would pass to <div> because the return value looks something like this: |