feat: add password type

This commit is contained in:
EETagent 2022-11-25 14:45:58 +01:00
parent bbf1804161
commit 661b60d85f

View file

@ -1,5 +1,5 @@
<script lang="ts">
export let type: 'text' | 'number' | 'tel' | 'e-mail' = 'text';
export let type: 'text' | 'number' | 'tel' | 'e-mail' | "password" = 'text';
const typeAction = (node: HTMLInputElement) => {
node.type = type;
};