united-tattoo/components/united/animated-link.tsx
Nicholai 3e739877b4 feat(components): add new UI components for enhanced user experience
- Introduced multiple new components including AnimatedLink, Button, Calendar, Card, ColorSwatch, Divider, Filmstrip, FormContainer, FormField, GalleryCard, Heading, HeroOverlay, IdentitySection, ImmersionSection, NewArtistsSection, NewContactSection, NewHero, NewNavigation, Reveal, SectionLabel, StickySplit, and Toast.
- Each component is designed with responsive layouts and customizable styles to improve the overall UI consistency and interactivity.
- Implemented accessibility features and animations to enhance user engagement.

This commit significantly expands the component library, providing a robust foundation for building a cohesive user interface.
2025-11-25 03:00:50 -07:00

33 lines
860 B
TypeScript

"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
export interface AnimatedLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {}
const AnimatedLink = React.forwardRef<HTMLAnchorElement, AnimatedLinkProps>(
({ className, children, ...props }, ref) => {
return (
<a
ref={ref}
className={cn("relative inline-block text-xl pb-0.5 group", "text-[var(--ink)]", className)}
{...props}
>
{children}
<span
className={cn(
"absolute bottom-0 left-0 w-full h-[2px]",
"bg-[var(--burnt)]",
"origin-left scale-x-0",
"transition-transform duration-300 ease-out",
"group-hover:scale-x-100",
)}
/>
</a>
)
},
)
AnimatedLink.displayName = "AnimatedLink"
export { AnimatedLink }