mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update input props
This commit is contained in:
@@ -18,6 +18,7 @@ type InputProps = {
|
|||||||
errorMessage?: string;
|
errorMessage?: string;
|
||||||
value: string;
|
value: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
|
name: string;
|
||||||
type?: 'text' | 'email' | 'password' | 'file' | 'number';
|
type?: 'text' | 'email' | 'password' | 'file' | 'number';
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
fullWidth?: boolean;
|
fullWidth?: boolean;
|
||||||
@@ -28,6 +29,7 @@ const Input = ({
|
|||||||
type = 'text',
|
type = 'text',
|
||||||
color = 'client',
|
color = 'client',
|
||||||
label,
|
label,
|
||||||
|
name,
|
||||||
placeholder,
|
placeholder,
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
@@ -59,7 +61,8 @@ const Input = ({
|
|||||||
type={type}
|
type={type}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
accept='image/*'
|
name={name}
|
||||||
|
accept={type === 'file' ? 'image/*' : undefined}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user