mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 12:47:25 +00:00
16 lines
448 B
Svelte
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>
|