A Svelte component to display a what3words address, complying with their best practices. Upon click it will open the location in a new browser tab
Install what3words-svelte
with your favorite npm
wrapper (I am partial to pnpm
)
user@example:~$ pnpm i what3words-svelte
Then add the following to your +page.svelte
<script lang="ts">
import { What3words } from 'what3words-svelte';
</script>
<What3words location="filled.count.soap" />
<What3words location="your.three.words" />