Hero Ui

HeroUI Separator

Cards

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, Surface } from "@/components/ui/heroui-separator"

export default function WithSurface() {
  return (
    <div className="flex flex-col gap-8">
      <div className="flex flex-col gap-2">
        <Surface className="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6" variant="default">
          <h3 className="text-base font-semibold text-foreground">Default Surface</h3>
          <Separator />
          <p className="text-sm text-muted-foreground">Surface Content</p>
        </Surface>
      </div>

      <div className="flex flex-col gap-2">
        <Surface className="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6" variant="secondary">
          <h3 className="text-base font-semibold text-foreground">Secondary Surface</h3>
          <Separator variant="secondary" />
          <p className="text-sm text-muted-foreground">Surface Content</p>
        </Surface>
      </div>

      <div className="flex flex-col gap-2">
        <Surface className="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6" variant="tertiary">
          <h3 className="text-base font-semibold text-foreground">Tertiary Surface</h3>
          <Separator variant="tertiary" />
          <p className="text-sm text-muted-foreground">Surface Content</p>
        </Surface>
      </div>

      <div className="flex flex-col gap-2">
        <Surface
          className="flex min-w-[320px] flex-col gap-3 rounded-3xl border p-6"
          variant="transparent"
        >
          <h3 className="text-base font-semibold text-foreground">Transparent Surface</h3>
          <Separator />
          <p className="text-sm text-muted-foreground">Surface Content</p>
        </Surface>
      </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

    100
  • HeroUI Disclosure Group

    HeroUI Disclosure Group

    94
  • HeroUI AlertDialog

    HeroUI AlertDialog

    80

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3