Contact
Contact links to a social profile with its icon. the icon wrapper supplies the linkās accessible name, and the destination opens in a new tab.
usage
GithubContactIcon.svelte is the small wrapper used by this example. keep the icon decorative; the wrapper names the link.
GithubContact.svelte
<script>
import { Contact } from '@ciabi/loafkit-ui';
import GithubContactIcon from './GithubContactIcon.svelte';
</script>
<Contact Icon={GithubContactIcon} href="https://github.com/ciabi/loafkit" />GithubContactIcon.svelte
<script>
import GithubIcon from '@iconify-svelte/hugeicons/github';
let { style = '' } = $props();
</script>
<span role="img" aria-label="GitHub" {style}>
<GithubIcon aria-hidden="true" width="20" height="20" />
</span>