Basic
top
middle
bottom
<Stack class="gap-5">
<div>top</div>
<div>middle</div>
<div>bottom</div>
</Stack>
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
Stack
, you could pass anything you normally would pass to <div>
because the return value looks something like this:<div class={containerClass} {...restWithoutClass}>
{children}
</div>