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