DDBS UI
primitive

Container

A responsive width wrapper with narrow, default, and wide measures and consistent side gutters.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/container.json
Fullscreen
width="narrow"
width="default"
width="wide"

Usage

container-example.tsx
import { Container } from "@dbs/ui";

export default function ContainerExample() {
  return (
    <div className="w-full space-y-3">
      {(["narrow", "default", "wide"] as const).map((width) => (
        <Container
          key={width}
          width={width}
          className="rounded-lg border border-dashed border-line bg-surface py-3 text-center text-sm text-ink-muted"
        >
          width=&quot;{width}&quot;
        </Container>
      ))}
    </div>
  );
}