mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-27 23:56:59 +00:00
refactor: deep link for faq
This commit is contained in:
1 parent
3ab73d8369
commit
3541af7a96
19 files changed
+300
-149
No files matched your search
@@ -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