input styles

This commit is contained in:
Jan Prochazka
2021-03-04 15:52:12 +01:00
parent ef5bfb5a89
commit ce44e271ae
6 changed files with 151 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
<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>