import { h, JSX } from 'preact'; import classnames from 'classnames/bind'; import styles from './input.module.css'; const cx = classnames.bind(styles); export type InputProps = { invalid?: boolean; type?: string; className?: string; } & JSX.HTMLAttributes; export const Input = ({ children, className, type = 'text', invalid, ...props }: InputProps) => ( {children} );