import { forwardRef, useId } from 'react' import type { ReactNode } from 'react' import { Box, BoxProps } from '../Box' import { cx } from '../classnames' export interface InputProps extends BoxProps { disabled: boolean value: string onChange: (value: string) => void children: ReactNode autoFocus: boolean placeholder: string inputProps: BoxProps } export let Input = forwardRef(function Input( { disabled, value, onChange, children, placeholder, inputProps, ...props }: InputProps, ref, ) { let id = useId() return ( {children} onChange(value)} /> ) }) export default Input