mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 12:47:25 +00:00
15 lines
420 B
Svelte
15 lines
420 B
Svelte
<script lang="ts">
|
|
import { getFormContext } from './FormProviderCore.svelte';
|
|
import FormPasswordFieldRaw from './FormPasswordFieldRaw.svelte';
|
|
|
|
export let label;
|
|
export let name;
|
|
export let templateProps = {};
|
|
|
|
const { template } = getFormContext();
|
|
</script>
|
|
|
|
<svelte:component this={template} type="text" {label} {...templateProps}>
|
|
<FormPasswordFieldRaw {name} {...$$restProps} />
|
|
</svelte:component>
|