mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Updated several input components
This commit is contained in:
10
lib/types/Input.d.ts
vendored
10
lib/types/Input.d.ts
vendored
@@ -3,10 +3,12 @@ import type { ChangeEventHandler } from "react";
|
||||
|
||||
|
||||
export interface TextInputProps {
|
||||
id: string;
|
||||
id?: string;
|
||||
className?: string;
|
||||
inputClassName?: string;
|
||||
labelClassName?: string;
|
||||
maxLength?: number;
|
||||
spellCheck?: boolean;
|
||||
placeholder?: string;
|
||||
defaultValue?: string;
|
||||
value?: string;
|
||||
@@ -14,6 +16,12 @@ export interface TextInputProps {
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export interface TextAreaProps extends TextInputProps{
|
||||
rows?: number;
|
||||
cols?: number;
|
||||
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
||||
}
|
||||
|
||||
export interface SelectInputProps {
|
||||
label: React.ReactNode;
|
||||
value?: string;
|
||||
|
||||
Reference in New Issue
Block a user