mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-24 20:43:05 +00:00
31 lines
594 B
Svelte
31 lines
594 B
Svelte
<script>
|
|
import { applyAction, enhance } from '$app/forms'
|
|
import Names from '$lib/components/names.svelte'
|
|
export let data
|
|
export let form
|
|
console.log('form: ', form)
|
|
const { names } = data
|
|
</script>
|
|
|
|
<h1>Some form</h1>
|
|
|
|
<form
|
|
method="POST"
|
|
use:enhance={({ form }) => {
|
|
return async ({ update }) => {
|
|
update()
|
|
}
|
|
}}
|
|
action="?/create"
|
|
>
|
|
<input
|
|
type="text"
|
|
placeholder="Type here"
|
|
class="input input-bordered w-full max-w-xs"
|
|
name="myText"
|
|
/>
|
|
</form>
|
|
|
|
<br />
|
|
|
|
<Names namesData={names} />
|