react-lightning-design-system
Version:
Salesforce Lightning Design System components built with React
25 lines (24 loc) • 664 B
TypeScript
import React, { ReactNode, Ref, TextareaHTMLAttributes } from 'react';
import { FormElementProps } from './FormElement';
/**
*
*/
export type TextareaProps = {
label?: string;
required?: boolean;
error?: FormElementProps['error'];
cols?: number;
tooltip?: ReactNode;
tooltipIcon?: string;
elementRef?: Ref<HTMLDivElement>;
textareaRef?: Ref<HTMLTextAreaElement>;
onValueChange?: (value: string, prevValue?: string) => void;
readOnly?: boolean;
htmlReadOnly?: boolean;
} & TextareaHTMLAttributes<HTMLTextAreaElement>;
/**
*
*/
export declare const Textarea: React.FC<TextareaProps> & {
isFormElement: boolean;
};