File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/kit-styled/src/components/input Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,18 @@ export const Input = component$<InputProps>(
12
12
'bind:value' : valueSig ,
13
13
// eslint-disable-next-line @typescript-eslint/no-unused-vars
14
14
'bind:checked' : checkedSig ,
15
- ...restOfProps
15
+ ...props
16
16
} ) => {
17
17
return (
18
18
< >
19
19
< input
20
- { ...restOfProps }
21
- bind :value = { valueSig }
20
+ { ...props }
22
21
aria-errormessage = { `${ name } -error` }
23
22
aria-invalid = { ! ! error }
23
+ bind :value = { valueSig }
24
24
class = { cn (
25
- 'rounded-base border-input placeholder:text-muted-foreground focus-visible:ring-ring flex h-12 w-full border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50' ,
26
- restOfProps . class ,
25
+ 'rounded-base border-input placeholder:text-muted-foreground focus-visible:ring-ring bg-background text-foreground file:text-foreground flex h-12 w-full border px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50' ,
26
+ props . class ,
27
27
) }
28
28
id = { name }
29
29
/>
You can’t perform that action at this time.
0 commit comments