16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
export interface TextLinkProps {
|
|
href: string;
|
|
children?: ReactNode;
|
|
}
|
|
|
|
/** An underlined link. There is no accent colour; the underline carries the signal. */
|
|
export function TextLink({ href, children }: TextLinkProps) {
|
|
return (
|
|
<a className="link" href={href}>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|