mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 13:43:59 -05:00
29 lines
575 B
TypeScript
29 lines
575 B
TypeScript
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;
|
|
}
|