mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Most simple components created
This commit is contained in:
28
lib/types/Input.d.ts
vendored
Normal file
28
lib/types/Input.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { ChangeEventHandler } from "react";
|
||||
|
||||
|
||||
export interface TextInputProps {
|
||||
id: string;
|
||||
className?: string;
|
||||
inputClassName?: string;
|
||||
labelClassName?: string;
|
||||
placeholder?: string;
|
||||
defaultValue?: string;
|
||||
value?: string;
|
||||
onChange?: ChangeEventHandler<HTMLInputElement>;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export interface SelectInputProps {
|
||||
label: React.ReactNode;
|
||||
value?: string;
|
||||
onChange?: (newVlaue: string) => void;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface OptionInputProps {
|
||||
id?: string;
|
||||
className?: string;
|
||||
value: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
Reference in New Issue
Block a user