Basic
Example
<Container class="bg-neutral-50">Example</Container>
Props
size
Required
false
Type
"sm" | "md" | "lg" | "xl"
Default
"lg"
Notes
The screen size that you want the width of the inner content to be.
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
Container
, you could pass anything you normally would pass to <div>
because the return value looks something like this:<div class={containerClass} {...restWithoutClass}>
{children}
</div>