mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
18 lines
472 B
TypeScript
18 lines
472 B
TypeScript
import * as React from 'react';
|
|
|
|
export interface ILinkProps {
|
|
title: string;
|
|
href: string;
|
|
className?: string;
|
|
}
|
|
|
|
export const Link: React.FunctionComponent<ILinkProps> = ({ children, title, href, className }: React.PropsWithChildren<ILinkProps>) => {
|
|
return (
|
|
<a
|
|
className={`text-[var(--frontmatter-secondary-text)] hover:text-[var(--frontmatter-link-hover)] ${className || ""}`}
|
|
title={title}
|
|
href={href}>
|
|
{children}
|
|
</a>
|
|
);
|
|
}; |