mapcomplete/UI/Base/NextButton.svelte

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

26 lines
767 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"
import { twMerge } from "tailwind-merge"
2023-05-14 03:24:13 +02:00
const dispatch = createEventDispatcher<{ click }>()
export let clss: string | undefined = undefined
2023-05-14 03:24:13 +02:00
</script>
<SubtleButton
on:click={() => dispatch("click")}
2023-06-15 16:12:46 +02:00
options={{ extraClasses: twMerge("flex items-center", clss) }}
>
<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>