mapcomplete/UI/Base/BackButton.svelte

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

21 lines
593 B
Svelte
Raw Normal View History

2023-05-14 03:24:13 +02:00
<script lang="ts">
/**
* Wrapper around 'subtleButton' with an arrow pointing to the right
* See also: NextButton
*/
import SubtleButton from "./SubtleButton.svelte"
import { ChevronLeftIcon } from "@rgossiaux/svelte-heroicons/solid"
import { createEventDispatcher } from "svelte"
2023-05-14 03:24:13 +02:00
const dispatch = createEventDispatcher<{ click }>()
export let clss = ""
2023-05-14 03:24:13 +02:00
</script>
<SubtleButton
on:click={() => dispatch("click")}
options={{ extraClasses: clss + " flex items-center" }}
>
2023-06-14 20:44:01 +02:00
<ChevronLeftIcon class="h-12 w-12" slot="image" />
<slot slot="message" />
2023-05-14 03:24:13 +02:00
</SubtleButton>