Componentdata0.37 KB gzipZero dependencies

Container

Centered layout wrapper with notch cutouts.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add container

Or install the full npm package:

npm install bigbullui

Usage

tsx5 lines
import { Container } from "@/components/ui/container"; <Container size="lg" notched>  <main>Notched ticket container layout</main></Container>

Source code

container.tsx + 1 helper

Zero 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 />
PropTypeDescription
size"sm" | "md" | "lg" | "xl" | "full"Component size preset. (Default: "lg")
notchedbooleanToggles notched. (Default: true)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.
childrenReact.ReactNodeChild elements rendered inside the component.