docsLine Hover Link

Line Hover Link

Subtle and elegant underline hover animations for links. Easy-to-remember variant names!

Loading Preview...

Features

  • 11 Animation Variants: Easy-to-remember names like slide, double, grow, bounce
  • Pure CSS Animations: Maximum performance, no JavaScript overhead
  • Dark Mode Ready: Uses currentColor for automatic theming
  • Accessible: Standard anchor element with proper semantics

Installation

npx shadcn@latest add "https://www.vengenceui.com/r/line-hover-link.json"

Usage

Basic Usage

Loading Preview...
Loading Preview...

SVG-Based Effects

Loading Preview...

Props

Prop NameTypeDefaultDescription
variantLineHoverVariant'slide'The animation variant. See Variant Guide below.
childrenReact.ReactNode-The link content.
hrefstring-The URL the link points to.
classNamestring-Additional CSS classes to apply.

Variant Guide

VariantEffectBest For
slideLine slides in from rightNavigation links
doubleTwo lines animate togetherBold statements
growLine grows thicker on hoverEmphasis
strikeStrikethrough + text scalesCall to action
fadeLines fade up with staggerElegant effect
pulseLine pulses up and downDynamic feel
swapLines go opposite directionsUnique style
sweepFull background sweepStrong emphasis
bounceBouncy squish animationPlayful effect
arcSVG arc stroke draws inSign-up CTAs
scribbleSVG scribble draws inHandwritten feel