Skip to Content
🎉Introducing Pumki UI
Custom AssetsCurved Arrow

Custom Curved Arrow

Pumki UIPumki UI

Installation

Usage


import { CustomCurvedArrow } from '@/components/pumki-ui/sections/timeline/custom-curved-arrow.tsx';

1<CustomCurvedArrow />

Example

Pumki UIPumki UI
Pumki UIPumki UI

Props

PropTypeDefaultDescription
startElementReact.RefObject<HTMLElement>nullrequired
endElementReact.RefObject<HTMLElement>nullrequired
obstacleElementReact.RefObject<HTMLElement>nullundefined
startXnumber0Manual X coordinate for the start point (overrides element if provided).
startYnumber0Manual Y coordinate for the start point (overrides element if provided).
endXnumber100Manual X coordinate for the end point (overrides element if provided).
endYnumber100Manual Y coordinate for the end point (overrides element if provided).
curveIntensitynumber0.4Controls the strength of the curve between start and end.
curveType”smooth""dramatic""s-curve"
curveDirection”auto""up""down"
strokeWidthnumber4Width of the arrow stroke.
arrowSizenumber20Size of the arrow head.
classNamestring""Custom CSS classes for the container.
animatedbooleanundefinedIf true, enables arrow animation (not implemented in current code).
startPosition”top""bottom""left"
endPosition”top""bottom""left"
Last updated on