button component

This commit is contained in:
2022-12-22 21:50:09 -08:00
parent 06f5a1af42
commit 2943634248
3 changed files with 33 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<script>
import { invoke } from '@tauri-apps/api/tauri';
import { createEventDispatcher } from 'svelte';
import Button from '../ui/Button.svelte';
export let appState;
@ -34,4 +35,5 @@
<form action="#" on:submit|preventDefault="{unlock}">
<div class="text-gray-200">Enter your passphrase:</div>
<input autofocus class="text-gray-200 bg-zinc-800" type="password" placeholder="correct horse battery staple" bind:value="{passphrase}" />
<Button on:click={unlock}>Submit</Button>
</form>