mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
docs: update faq to include valid version of qmpc #52
This commit is contained in:
12
src/components/ExtLink.tsx
Normal file
12
src/components/ExtLink.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { AnchorHTMLAttributes } from 'react';
|
||||
import { ExternalLinkIcon } from '@chakra-ui/icons';
|
||||
import { Link } from '@chakra-ui/react';
|
||||
|
||||
export function ExtLink({ children, ...props }: AnchorHTMLAttributes<HTMLAnchorElement>) {
|
||||
return (
|
||||
<Link isExternal {...props} rel="noreferrer noopener nofollow">
|
||||
{children}
|
||||
<ExternalLinkIcon />
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user