feat: update layout components, fix AccentLink styles, add Tooltip and Cursor components

This commit is contained in:
2026-05-28 11:32:43 -07:00
parent 6882b77629
commit 5c9891ecc5
7 changed files with 66 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
type TooltipProps = {
text: string;
children?: React.ReactNode;
};
export default function Tooltip({ text, children }: TooltipProps) {
return (
<span className="group relative inline-flex">
{children}
<span
role="tooltip"
className="
pointer-events-none absolute bottom-full left-1/2 mb-2 -translate-x-1/2
rounded-md bg-neutral-800 px-2 py-1 text-xs text-neutral-100
whitespace-nowrap opacity-0
transition-opacity duration-150
group-hover:opacity-100 group-focus-within:opacity-100
"
>
{text}
</span>
</span>
);
}