Componentdata0.37 KB gzipZero dependencies
Container
Centered layout wrapper with notch cutouts.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add containerOr install the full npm package:
npm install bigbulluiUsage
tsx5 lines
import { Container } from "@/components/ui/container"; <Container size="lg" notched> <main>Notched ticket container layout</main></Container>Source code
container.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxcontainer.tsx53 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> { size?: "sm" | "md" | "lg" | "xl" | "full"; notched?: boolean; className?: string; children: React.ReactNode;} const SIZE_MAP = { sm: "max-w-screen-sm", md: "max-w-screen-md", lg: "max-w-screen-lg", xl: "max-w-screen-xl", full: "max-w-full",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Container } from "@/components/ui/container"; <Container />| Prop | Type | Description |
|---|---|---|
| size | "sm" | "md" | "lg" | "xl" | "full" | Component size preset. (Default: "lg") |
| notched | boolean | Toggles notched. (Default: true) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |
| children | React.ReactNode | Child elements rendered inside the component. |