MapComplete/UI/Base/MapControlButton.svelte
Pieter Vander Vennet f0b007512b Chore: run prettier
2023-06-14 20:44:01 +02:00

16 lines
406 B
Svelte

<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()
export let cls = ""
</script>
<button
on:click={(e) => dispatch("click", e)}
class={"pointer-events-auto m-0.5 h-fit w-fit rounded-full p-0.5 sm:p-1 md:m-1 " + cls}
>
<slot />
</button>