mirror of
https://github.com/codex-storage/codex-marketplace-ui-components.git
synced 2025-02-16 16:37:18 +00:00
Add max length prop for input
This commit is contained in:
parent
4c90f07abb
commit
b849073f43
@ -85,6 +85,8 @@ type Props = {
|
||||
min?: number | string;
|
||||
|
||||
max?: number | string;
|
||||
|
||||
maxLength?: number;
|
||||
};
|
||||
|
||||
export const Input = forwardRef<HTMLInputElement, Props>(
|
||||
@ -108,6 +110,7 @@ export const Input = forwardRef<HTMLInputElement, Props>(
|
||||
step,
|
||||
name,
|
||||
inputClassName,
|
||||
maxLength,
|
||||
type = "text",
|
||||
min,
|
||||
max,
|
||||
@ -155,6 +158,7 @@ export const Input = forwardRef<HTMLInputElement, Props>(
|
||||
step={step}
|
||||
min={min}
|
||||
max={max}
|
||||
maxLength={maxLength}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user