tailwind-ui-library/components/layout/Link.tsx
Benjamin Toby f73b56cdc4 Updates
2024-10-17 09:06:54 +01:00

30 lines
769 B
TypeScript

import { AnchorHTMLAttributes, DetailedHTMLProps } from "react";
import { twMerge } from "tailwind-merge";
/**
* # General Anchor Elements
* @className twui-a | twui-anchor
*/
export default function Link({
...props
}: DetailedHTMLProps<
AnchorHTMLAttributes<HTMLAnchorElement>,
HTMLAnchorElement
>) {
return (
<a
{...props}
className={twMerge(
"text-base text-link-500 no-underline hover:text-link-500/50",
"text-blue-600 dark:text-blue-400",
"border-0 border-b border-blue-300 border-solid leading-4",
"twui-anchor",
"twui-a",
props.className
)}
>
{props.children}
</a>
);
}