import { forwardRef } from 'react'; import * as React from 'react'; import classNames from 'classnames'; import styles from './styles.module.css'; enum Variant { Normal, Snug, Loose, } interface InputFieldProps extends React.ComponentProps<'input'> { variant?: Variant; } const Component = forwardRef(({ className, variant, ...props }, ref) => ( )); const InputField = Object.assign(Component, { Variants: Variant }); export default InputField;