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
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1