amankaushik481

Cluster

Component

About

A flex layout wrapper that arranges children in a wrapping row with vertical centering and a numeric 4px-scale gap, useful for tags, buttons and meta rows.

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

Code

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

Usage.tsx

import { Cluster } from "@/components/ui/cluster";

export default function ClusterDemo() {
  return (
    <Cluster gap={2}>
      <span className="rounded-md border border-border px-2 py-1 text-xs">
        One
      </span>
      <span className="rounded-md border border-border px-2 py-1 text-xs">
        Two
      </span>
      <span className="rounded-md border border-border px-2 py-1 text-xs">
        Three
      </span>
    </Cluster>
  );
}

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