Contact link

An “Email me” or “Call me” link whose address is put together in the browser, so it never appears in the HTML.

Usage

The email address and phone number come from site.contact in src/data/site.ts.initContactLinks() in src/scripts/site.ts fills in the href on load.

<ContactLink type="email" />
<ContactLink type="tel" class="footer-small-link" />

Props

PropTypeDefaultNotes
type'email' | 'tel'—
classstring—Applied to the link