mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
- Configure as ES module - Add svelte as peerDependency - add Vite and vite-preprocess to inline imported SCSS
18 lines
290 B
Svelte
18 lines
290 B
Svelte
<script>
|
|
/** @extends {"./Link.svelte"} LinkProps */
|
|
|
|
import Link from "./Link.svelte";
|
|
import Launch from "../icons/Launch.svelte";
|
|
</script>
|
|
|
|
<Link
|
|
{...$$restProps}
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
target="_blank"
|
|
icon="{Launch}"
|
|
>
|
|
<slot />
|
|
</Link>
|