Hero Ui

HeroUI Separator

Component 1

About

HeroUI v3 Separator — horizontal/vertical divider with content, variants, on-surface usage and a custom render-function API.

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

Code

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

Usage.tsx

import { Separator } from "@/components/ui/heroui-separator"

const items = [
  {
    iconUrl: "https://cdn.21st.dev/assets/mirror/f1/f160b971ad232e83567519e272d9dd11468845ad653dbdf2d66e306e4ac80e49.png",
    subtitle: "Receive account activity updates",
    title: "Set Up Notifications",
  },
  {
    iconUrl: "https://cdn.21st.dev/assets/mirror/24/24998563911cf687e1bb63d35a27b55f9c8d86f6183a38b2a21666c6f7a011a5.png",
    subtitle: "Connect your browser to your account",
    title: "Set up Browser Extension",
  },
  {
    iconUrl:
      "https://cdn.21st.dev/assets/mirror/e7/e7b9a6f26b454dff5950718064492a4d39cfd3f4d4feba78bda576a567271a25.png",
    subtitle: "Create your first collectible",
    title: "Mint Collectible",
  },
]

export default function WithContent() {
  return (
    <div className="max-w-md space-y-4">
      {items.map((item, index) => (
        <div key={index}>
          <div className="flex items-center gap-3">
            <img alt={item.title} className="size-12" src={item.iconUrl} />
            <div className="flex-1 space-y-0">
              <h4 className="text-small font-medium">{item.title}</h4>
              <p className="text-sm text-muted-foreground">{item.subtitle}</p>
            </div>
          </div>
          {index < items.length - 1 && <Separator className="my-4" />}
        </div>
      ))}
    </div>
  )
}

Dependencies

More by Hero Ui

View all
  • DatePicker

    DatePicker

    465
  • Chip

    Chip

    440
  •  The Pagination

    The Pagination

    361
  • HeroUI Color Picker

    HeroUI Color Picker

    105
  • Skeleton

    Skeleton

    104
  • HeroUI Table

    HeroUI Table

    99
  • HeroUI Disclosure Group

    HeroUI Disclosure Group

    94
  • HeroUI AlertDialog

    HeroUI AlertDialog

    80