sterling-svelte  1.0.12
A modern, accessible, lightweight UI component library for Svelte.

Link

An <a>: an interactive anchor element to navigate to a URL

Code
<script lang="ts">
  import { Link } from '@geoffcox/sterling-svelte';
</script>

<Link href="/demos/sterling-svelte/components/link">
  <SterlingIcon/>sterling-svelte
</Link>

Members

Property Name Type Default Comment
variant string '' Additional class names to apply

Considerations

  • Includes HTMLAnchorElement props, event, and methods

Anatomy

<a class="sterling-link">
  <slot {disabled} {href} {variant} />
</a>