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" />
<div class="w-full flex justify-between items-center" slot="message">
<slot />
<ChevronRightIcon class="w-12 h-12" />
</div>
2023-05-14 03:24:13 +02:00
</SubtleButton>