amankaushik481

Container

Component

About

A responsive layout wrapper that centers page content horizontally with side padding and a configurable max-width preset (sm, default, lg, full).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Container to your project and fits it to your theme.

Code

How Container is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Container } from "@/components/ui/container";

export default function ContainerDemo() {
  return (
    <Container
      size="sm"
      className="rounded-xl border border-dashed border-border py-4 text-center text-xs text-muted-foreground"
    >
      Container sm
    </Container>
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2