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