alexisroe

Container

Component

About

A generic bordered box for wrapping content with fixed padding, an optional border, and props to stretch full width/height or center children.

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 (
    <div className="flex min-h-[220px] w-full items-center justify-center bg-background p-10">
      <Container>
        <p className="eink-text">Content inside a container</p>
      </Container>
    </div>
  );
}

More by alexisroe

View all
  • Log

    Log

    7
  • Notification

    Notification

    2
  • Number Stepper

    Number Stepper

    2
  • Segmented Control

    Segmented Control

    2
  • Chip

    Chip

    2
  • Checkbox

    Checkbox

    1
  • E-Ink Code

    E-Ink Code

  • QR Code

    QR Code