Squiggle Arrow Demo

A demo page that showcases the squiggle-arrow component in its variants (wavy, bouncy, smooth), four directions (right, left, down, up), and three sizes with different stroke widths. Install it to preview or copy the example layout.

Squiggle Arrow Demo
LIVE · running in a sandboxed iframe
Installed with shadcn add · 1 workaround · theme neutral (none shipped)
  • resolved dependency "squiggle-arrow" from the item's own registry
See how it was built

Installation

pnpm dlx shadcn@latest add @cult-ui/squiggle-arrow-demo

Requires @cult-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import SquigglyArrow from "@/registry/default/ui/squiggle-arrow"export default function Example() {  return (    <div className="flex items-center gap-4">      <SquigglyArrow variant="wavy" direction="right" className="text-blue-500" />    </div>  )}
  • Previewing every variant, direction, and size of the squiggle arrow in one place before choosing one.
  • Copying a working layout that places labeled squiggle arrows in rows, wrapping grids, and horizontally scrolling strips.
  • Using as a reference for how to pass variant, direction, width, height, strokeWidth, and className to SquigglyArrow.
  • Pointing a visitor from a call-to-action or annotation toward a nearby element with a hand-drawn arrow.

Examples

Full demo page

Renders the complete demo with variants, directions, and sizes, as in the registry source.

full-demo-page.tsx
import SquigglyArrowDemo from "@/registry/default/example/squiggle-arrow-demo"export default function Page() {  return <SquigglyArrowDemo />}

Annotation pointing at a button

Places a colored bouncy arrow next to a call-to-action button.

annotation-pointing-at-a-button.tsx
import SquigglyArrow from "@/registry/default/ui/squiggle-arrow"export default function CtaHint() {  return (    <div className="flex items-center gap-3">      <SquigglyArrow variant="bouncy" direction="left" width={150} height={75} strokeWidth={3} className="text-pink-600" />      <button className="rounded-md bg-primary px-4 py-2 text-primary-foreground">Get started</button>    </div>  )}

Direction picker row

Shows the four directions in a wrapping row for a diagram legend.

direction-picker-row.tsx
import SquigglyArrow from "@/registry/default/ui/squiggle-arrow"export default function DirectionLegend() {  return (    <div className="flex flex-wrap gap-8">      <SquigglyArrow direction="up" className="text-cyan-600" />      <SquigglyArrow direction="down" className="text-pink-600" />      <SquigglyArrow direction="left" className="text-orange-600" />      <SquigglyArrow direction="right" className="text-green-600" />    </div>  )}

API reference

PropTypeDefaultDescription
variant"wavy" | "bouncy" | "smooth"—Visual style of the squiggle line. Values used in the demo are wavy, bouncy, and smooth. Full type is defined in the squiggle-arrow registry item.
direction"right" | "left" | "down" | "up"—Direction the arrow points. Values used in the demo are right, left, down, and up.
widthnumber—Width of the arrow in pixels, as used in the demo (150, 250, 300).
heightnumber—Height of the arrow in pixels, as used in the demo (75, 125, 150).
strokeWidthnumber—Stroke thickness of the squiggle line, as used in the demo (2, 3, 4).
classNamestring—Additional Tailwind classes, typically a text color utility such as text-blue-500 that sets the stroke color.

Accessibility

  • The arrows are decorative visuals. If an arrow conveys meaning (such as a direction hint), include equivalent text nearby or in aria-label on a wrapping element.
  • The demo uses h2 headings (Variants, Directions, Sizes) to structure the page for screen reader navigation.
  • Color is not the only cue: each demo arrow has a text label (Right, Left, Down, Up) so meaning does not rely on color alone.
  • Keep sufficient contrast between the arrow stroke color and the page background when choosing className colors.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Squiggle Arrow Demo" component (cult-ui/squiggle-arrow-demo) from its shadcn registry.1. Install it with: npx shadcn@latest add @cult-ui/squiggle-arrow-demo2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: variant, direction, width, height, strokeWidth, className.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport SquigglyArrow from "@/registry/default/ui/squiggle-arrow"export default function Example() {  return (    <div className="flex items-center gap-4">      <SquigglyArrow variant="wavy" direction="right" className="text-blue-500" />    </div>  )}```

Files & dependencies

  • registry/default/example/squiggle-arrow-demo.tsx
registryDependenciessquiggle-arrow

Looks similar, elsewhere