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;
|
||||
value: string;
|
||||
label?: string;
|
||||
name: string;
|
||||
type?: 'text' | 'email' | 'password' | 'file' | 'number';
|
||||
placeholder?: string;
|
||||
fullWidth?: boolean;
|
||||
@@ -28,6 +29,7 @@ const Input = ({
|
||||
type = 'text',
|
||||
color = 'client',
|
||||
label,
|
||||
name,
|
||||
placeholder,
|
||||
value,
|
||||
onChange,
|
||||
@@ -59,7 +61,8 @@ const Input = ({
|
||||
type={type}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
accept='image/*'
|
||||
name={name}
|
||||
accept={type === 'file' ? 'image/*' : undefined}
|
||||
placeholder={placeholder}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user