Squiggle Arrow

PreviousNext

A playful, hand-drawn squiggly arrow component with customizable variants, directions, and sizes

Installation

pnpm dlx shadcn@latest add "https://ui.datthu.site/r/squiggle-arrow.json"

Usage

import { SquiggleArrow } from "@/components/datthuui/squiggle-arrow"
<SquiggleArrow />

Props

PropTypeDefaultDescription
width?number200Width of the SVG arrow
height?number100Height of the SVG arrow
strokeWidth?number2.5Thickness of the arrow stroke
className?string-Additional CSS classes
direction?"right" | "left" | "up" | "down""right"Direction the arrow points
variant?"wavy" | "bouncy" | "smooth""wavy"Visual style of the squiggle pattern