/** @jsxRuntime classic */ /** @jsx jsx */ import { type InputHTMLAttributes, forwardRef } from 'react' import { jsx } from '@keystone-ui/core' import { useInputStyles, useInputTokens } from './hooks/inputs' import type { SizeType, WidthType } from './types' type InputProps = InputHTMLAttributes export type TextAreaProps = { invalid?: boolean size?: SizeType width?: WidthType onChange?: NonNullable value?: NonNullable } & Omit export const TextArea = forwardRef( ({ invalid = false, size = 'medium' as const, width = 'large' as const, ...props }, ref) => { const tokens = useInputTokens({ size, width, shape: 'square', isMultiline: true }) const styles = useInputStyles({ invalid, tokens }) return