A centred max-width wrapper with responsive gutters, and a simple divider.
import { Container, Divider } from "kivu-ui"On this page
import { Container, Divider } from "kivu-ui";import { Container, Divider } from "kivu-ui";
export default function Demo() {
return (
<div className="w-full space-y-4">
<Container size="sm" className="rounded-kivu-lg bg-primary-50 py-4 text-center text-primary-700">Container sm</Container>
<Divider />
<div className="flex h-10 items-center gap-4">
<span>Left</span>
<Divider orientation="vertical" />
<span>Right</span>
</div>
</div>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | "lg" | "xl" | "full" | "xl" | Max width: 48rem, 64rem, 72rem, 90rem or none. |
asChild | boolean | false | Render the single child (e.g. a router Link) with this container's styles and behaviour. |
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Direction. |
Every component also accepts className and forwards its ref. Root CSS class: .kivu-container