MapComplete/UI/Base/NextButton.svelte

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

25 lines
698 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: BackButton
*/
import SubtleButton from "./SubtleButton.svelte"
import { ChevronRightIcon } from "@rgossiaux/svelte-heroicons/solid"
import { createEventDispatcher } from "svelte"
2023-05-14 03:24:13 +02:00
const dispatch = createEventDispatcher<{ click }>()
export let clss: string = ""
2023-05-14 03:24:13 +02:00
</script>
<SubtleButton
on:click={() => dispatch("click")}
options={{ extraClasses: clss + " flex items-center" }}
>
<slot name="image" slot="image" />
2023-06-14 20:44:01 +02:00
<div class="flex w-full items-center justify-between" slot="message">
<slot />
2023-06-14 20:44:01 +02:00
<ChevronRightIcon class="h-12 w-12" />
</div>
2023-05-14 03:24:13 +02:00
</SubtleButton>