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