Dmitry

Dashed Line

Component

About

Dashed divider with faded ends and moving dashes. From GooseUI (goosen-x/gooseui), MIT.

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

Code

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

Usage.tsx

import { DashedLine } from "@/components/ui/gooseui-dashed-line"

export default function CardPreview() {
  return (
    <div className="flex h-full w-full items-center justify-center gap-6 px-6">
      <div className="flex w-32 flex-col gap-4">
        <DashedLine animated fade={20} />
        <DashedLine
          animated
          direction="reverse"
          dash={10}
          gap={6}
          thickness={2}
          className="text-primary"
        />
        <DashedLine animated fade={20} />
      </div>
      <div className="h-24">
        <DashedLine orientation="vertical" animated dash={4} gap={4} />
      </div>
    </div>
  )
}

More by Dmitry

View all
  • Border Beam

    Border Beam

    156
  • Features Grid

    Features Grid

    104
  • Rating

    Rating

    1
  • Tap Coin

    Tap Coin

  • Header — Magazine

    Header — Magazine

  • Header — Mega Menu

    Header — Mega Menu

  • Header — Morphing

    Header — Morphing

  • Morphing Header

    Morphing Header