1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-15 20:54:28 -04:00

lucide icons

This commit is contained in:
2025-03-11 21:18:41 -04:00
parent 42d9470480
commit 8e89701453
20 changed files with 201 additions and 174 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import Link from "../Link";
import { FiLink } from "react-icons/fi";
import { LinkIcon } from "lucide-react";
import type { ComponentPropsWithoutRef } from "react";
export type HeadingAnchorProps = Omit<ComponentPropsWithoutRef<typeof Link>, "href"> & {
@@ -9,8 +9,8 @@ export type HeadingAnchorProps = Omit<ComponentPropsWithoutRef<typeof Link>, "hr
const HeadingAnchor = ({ id, title, ...rest }: HeadingAnchorProps) => {
return (
<Link href={`#${id}`} title={`Jump to "${title}"`} aria-hidden plain style={{ lineHeight: 1 }} {...rest}>
<FiLink size="0.8em" />
<Link href={`#${id}`} title={`Jump to "${title}"`} aria-hidden plain {...rest}>
<LinkIcon size="0.8em" />
</Link>
);
};