Initial commit
This commit is contained in:
12
src/components/links/ExternalLink.astro
Normal file
12
src/components/links/ExternalLink.astro
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
interface Props {
|
||||
href: string
|
||||
class?: string
|
||||
}
|
||||
|
||||
const { href, class: clazz } = Astro.props
|
||||
---
|
||||
|
||||
<a href={href} target="_blank" rel="noopener" class:list={["link", clazz]}>
|
||||
<slot />
|
||||
</a>
|
Reference in New Issue
Block a user