Basic
left
center
right
<Flex class="gap-8">
<div>left</div>
<div>center</div>
<div>right</div>
</Flex>
Props
children
*Required
true
Type
ComponentChild
Default
none
...rest
Required
false
Type
Omit<ComponentProps<"div">, "size">
Default
none
Notes
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:<div class={containerClass} {...restWithoutClass}>
{children}
</div>