2026-01-10 13:19:59 -06:00
|
|
|
import type { ComponentProps } from "react";
|
|
|
|
|
import { classNames } from "../../core/ui/classNames";
|
|
|
|
|
import "./index.css";
|
|
|
|
|
|
|
|
|
|
export interface LinkProps extends ComponentProps<"a"> {
|
|
|
|
|
underline?: "always" | "hover" | "never";
|
2026-01-18 15:14:26 -06:00
|
|
|
highContrast?: boolean;
|
2026-01-10 13:19:59 -06:00
|
|
|
}
|
|
|
|
|
|
2026-01-18 15:14:26 -06:00
|
|
|
export function Link({
|
|
|
|
|
highContrast,
|
|
|
|
|
className,
|
|
|
|
|
underline = "always",
|
|
|
|
|
...props
|
|
|
|
|
}: LinkProps) {
|
2026-01-10 13:19:59 -06:00
|
|
|
return (
|
|
|
|
|
<a
|
|
|
|
|
className={classNames("link", className)}
|
|
|
|
|
{...props}
|
|
|
|
|
data-underline={underline}
|
2026-01-18 15:14:26 -06:00
|
|
|
data-high-contrast={highContrast}
|
2026-01-10 13:19:59 -06:00
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|