what3words-svelte Svelte Themes

What3words Svelte

What3words-svelte

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

Usage

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" />

Demo

Top categories

Loading Svelte Themes