mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 19:43:02 +00:00
refactor: deep link for faq
This commit is contained in:
9
src/components/HelpText/HeaderAnchor.tsx
Normal file
9
src/components/HelpText/HeaderAnchor.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { RiLink } from 'react-icons/ri';
|
||||
|
||||
export function HeaderAnchor({ id }: { id: string }) {
|
||||
return (
|
||||
<a href={`#${id}`} data-anchor={id} className="absolute -left-6 opacity-10 transition-opacity duration-200">
|
||||
<RiLink className="max-h-[.75em]" />
|
||||
</a>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user