UNPKG

surf-design-system

Version:
31 lines (30 loc) 1.05 kB
/** @jsxRuntime classic */ /** @jsx jsx */ import React from 'react'; import type { validationSDS, sizeSDS, stackDirectionSDS, UseFormRegisterReturn } from '../types/common'; export interface TextareaProps { label?: React.ReactNode; labelWidth?: string; width?: string; height?: string; value?: string; helpText?: React.ReactNode; helpTextSize?: sizeSDS; placeholder?: string; direction?: stackDirectionSDS; validation?: validationSDS; disabled?: boolean; autoFocus?: boolean; isRequire?: boolean; lengthCheck?: boolean; currentLength?: number; maxLength?: number; minLength?: number; lengthTextSize?: sizeSDS; onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void; onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void; tabIndex?: number; register?: UseFormRegisterReturn; } declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>; export default Textarea;