Skip to content

Commit 94c1d33

Browse files
committed
feat: ✨ Update the input type attributes
1 parent ad941cc commit 94c1d33

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/lib/input/input.svelte

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,26 @@
22
import type { Component } from 'svelte';
33
import Error from '$lib/icons/error.svelte';
44
import { randomString } from '$lib/utils/random.js';
5+
import type { HTMLAttributes } from 'svelte/elements';
56
67
type propsT = {
7-
type?: 'text' | 'number' | 'email' | 'password' | undefined;
8+
type?:
9+
| 'text'
10+
| 'number'
11+
| 'email'
12+
| 'password'
13+
| 'search'
14+
| 'time'
15+
| 'date'
16+
| 'datetime-local'
17+
| 'file'
18+
| 'image'
19+
| 'tel'
20+
| 'color'
21+
| 'url'
22+
| 'week'
23+
| 'month'
24+
| undefined;
825
id?: string | undefined;
926
name?: string | undefined;
1027
value?: string | undefined;

0 commit comments

Comments
 (0)