import clsx from "clsx" import React from "react" import styles from "./input.module.css" type RequireOnlyOne = Pick< T, Exclude > & { [K in Keys]-?: Required> & Partial, undefined>> }[Keys] type Props = React.HTMLProps & { label?: string width?: number | string height?: number | string labelClassName?: string } type InputProps = RequireOnlyOne // eslint-disable-next-line react/display-name const Input = React.forwardRef( ({ label, className, width, height, labelClassName, ...props }, ref) => { return (
{label && ( )}
) } ) export default Input