import { ComponentProps, ChangeEventHandler, FocusEventHandler } from 'react'; import { LabelProps } from '../Label/Label.types.js'; import { BaseProps } from '../types.js'; import '@emotion/react'; type TextareaCoreProps = Pick, "autoFocus" | "placeholder" | "maxLength" | "name"> & { nativeOnChange?: ChangeEventHandler; nativeOnBlur?: FocusEventHandler; nativeOnFocus?: FocusEventHandler; onChange?: (value: string) => void; maxLength?: number; setIsFocus?: (value: boolean) => void; value?: string; disabled?: boolean; native?: Pick; }; type TextareaProps = BaseProps<"textarea"> & Omit & { label?: string; labelProps?: Omit, "text">; characterCount?: boolean; /** * min: 100px * * default: 140px * * max: 184px * @default default */ height?: "default" | "min" | "max"; isError?: boolean; isFocus?: boolean; helperText?: string; errorText?: string; }; export { TextareaCoreProps, TextareaProps };