mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-23 11:35:17 +08:00
29 lines
779 B
TypeScript
29 lines
779 B
TypeScript
import * as React from 'react';
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
import UnstyledLink, {
|
|
UnstyledLinkProps,
|
|
} from '@/components/links/UnstyledLink';
|
|
|
|
const UnderlineLink = React.forwardRef<HTMLAnchorElement, UnstyledLinkProps>(
|
|
({ children, className, ...rest }, ref) => {
|
|
return (
|
|
<UnstyledLink
|
|
ref={ref}
|
|
{...rest}
|
|
className={cn(
|
|
'animated-underline custom-link inline-flex items-center font-medium',
|
|
'focus-visible:ring-primary-500 focus:outline-none focus-visible:rounded focus-visible:ring focus-visible:ring-offset-2',
|
|
'border-dark border-b border-dotted hover:border-black/0',
|
|
className
|
|
)}
|
|
>
|
|
{children}
|
|
</UnstyledLink>
|
|
);
|
|
}
|
|
);
|
|
|
|
export default UnderlineLink;
|