Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

TextField.svelte

12 lines282 Bytes

1<script lang="ts">
2 import type { FieldWithValue } from '../../src/index.js'
3​
4 interface Props {
5 field: FieldWithValue<string>
6 label: string
7 }
8​
9 const { field, label }: Props = $props()
10</script>
11​
12<span data-testid="app-field">{label}:{field.name}:{field.value}</span>