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 ContainerCenteredDemo() {
  return (
    <div className="flex w-full items-center justify-center bg-background p-10">
      <Container centered fullWidth style={{ height: 160 }}>
        <p className="eink-text">Centered content</p>
      </Container>
    </div>
  );
}

More by alexisroe

View all
  • Log

    Log

    4
  • Number Stepper

    Number Stepper

    1
  • E-Ink Code

    E-Ink Code

  • QR Code

    QR Code

  • Breadcrumbs

    Breadcrumbs

  • Skeleton

    Skeleton

  • E-Ink Progress Bar

    E-Ink Progress Bar

  • Navigation

    Navigation