import { ChangeEvent, ReactNode } from "react";
import { ComponentPropsWithoutRef } from "react";
interface TextfieldProps extends ComponentPropsWithoutRef<"input"> {}
function Textfield({value, onChange, placeholder, ...props}: TextfieldProps) {
return (
)
}
function Dropdown({ children, ...props }: ComponentPropsWithoutRef<"select">) {
return (
);
}
function File({ ...props }: ComponentPropsWithoutRef<"input">) {
return (
);
}
function Button({ children, className = "", ...props }: ComponentPropsWithoutRef<"button">) {
return (
)
}
function Label( {children}: ComponentPropsWithoutRef<"label">) {
return (
)
}
export const Input = {
Text: Textfield,
Select: Dropdown,
File: File,
Button: Button,
Label: Label,
};