diff options
author | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-01-31 00:36:03 +0900 |
---|---|---|
committer | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-01-31 00:36:03 +0900 |
commit | 361f2b90070d99ce4676f4aed088e83f31eac325 (patch) | |
tree | 212ad97416b3a7fdf921cb487dc0488b78572c69 /src/components/ExternalLink.js | |
parent | f83947b5b9751fd0fa04e5cf0e67e4033ea40772 (diff) |
initial commit
Diffstat (limited to 'src/components/ExternalLink.js')
-rw-r--r-- | src/components/ExternalLink.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/ExternalLink.js b/src/components/ExternalLink.js new file mode 100644 index 00000000..82c87300 --- /dev/null +++ b/src/components/ExternalLink.js @@ -0,0 +1,11 @@ +import React from 'react'; +//import styles from './ExternalLink.module.css'; +import ExternalLinkIcon from '@theme/Icon/ExternalLink'; + +export default function ExternalLink({children, href}) { + return ( + <a href={href} rel={"noopener noreferrer"} target={"_blank"}> + {children} <ExternalLinkIcon /> + </a> + ); +}
\ No newline at end of file |