mapcomplete/UI/Base/MapControlButton.svelte

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
400 B
Svelte
Raw Normal View History

2023-03-24 19:21:15 +01:00
<script lang="ts">
import { createEventDispatcher } from "svelte";
/**
* A round button with an icon and possible a small text, which hovers above the map
*/
const dispatch = createEventDispatcher()
2023-05-30 02:52:22 +02:00
export let cls = ""
2023-03-24 19:21:15 +01:00
</script>
2023-05-30 02:52:22 +02:00
<button on:click={e => dispatch("click", e)} class={"rounded-full h-fit w-fit m-0.5 md:m-1 p-0.5 sm:p-1 pointer-events-auto "+cls} >
2023-04-24 02:27:55 +02:00
<slot/>
</button>