Container
Wrap your site's content in a container to provide an app-wide width.
Source codeExample
import { Container } from "rfui";
Basic
Example
<Container class="bg-neutral-50">Example</Container>
Props
Prop | Required | Default | Type and notes |
---|---|---|---|
size | - | "lg" |
The screen size that you want the width of the inner content to be. See Tailwind CSS's Responsive Design page. |
children | ✔ | - |
|
...rest | - | - |
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:
|