Updated several input components

This commit is contained in:
2025-07-19 23:58:16 -04:00
parent ea7ac27772
commit f84f0a0ebc
6 changed files with 607 additions and 463 deletions

10
lib/types/Input.d.ts vendored
View File

@@ -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;