dbgate/packages/web/src/forms/LargeFormButton.svelte

18 lines
417 B
Svelte
Raw Normal View History

2021-03-11 19:37:05 +00:00
<script>
import { getFormContext } from './FormProviderCore.svelte';
import { createEventDispatcher } from 'svelte';
import LargeButton from '../elements/LargeButton.svelte';
const dispatch = createEventDispatcher();
const { values } = getFormContext();
function handleClick() {
dispatch('click', $values);
}
</script>
<LargeButton on:click={handleClick} {...$$props}>
<slot />
</LargeButton>