amankaushik481

Stack

Component

About

A vertical flex layout primitive that arranges its children in a column with a consistent gap, useful for spacing form fields, card content, or any stacked UI blocks.

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

Code

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

Usage.tsx

import { Stack } from "@/components/ui/stack";

export default function StackDemo() {
  return (
    <Stack gap={4} className="items-start p-8">
      <h2 className="text-lg font-semibold">Create a project</h2>
      <p className="text-sm text-muted-foreground">
        Stack arranges its children vertically with a consistent gap.
      </p>
      <button className="inline-flex h-9 items-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground">
        Continue
      </button>
    </Stack>
  );
}

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