dbgate/packages/web/src/forms/FormTextField.svelte
2021-03-05 20:29:10 +01:00

16 lines
448 B
Svelte

<script lang="ts">
import { getFormContext } from './FormProviderCore.svelte';
import FormTextFieldRaw from './FormTextFieldRaw.svelte';
export let label;
export let name;
export let templateProps = {};
export let focused = false;
const { template } = getFormContext();
</script>
<svelte:component this={template} type="text" {label} {...templateProps}>
<FormTextFieldRaw {name} {...$$restProps} {focused} />
</svelte:component>