23 lines
529 B
TypeScript
23 lines
529 B
TypeScript
import * as React from 'react';
|
|
import { StandardProps } from '..';
|
|
|
|
export interface TextareaProps
|
|
extends StandardProps<
|
|
React.TextareaHTMLAttributes<HTMLTextAreaElement>,
|
|
TextareaClassKey,
|
|
'rows'
|
|
> {
|
|
defaultValue?: any;
|
|
disabled?: boolean;
|
|
rows?: string | number;
|
|
rowsMax?: string | number;
|
|
textareaRef?: React.Ref<any>;
|
|
value?: string;
|
|
}
|
|
|
|
export type TextareaClassKey = 'root' | 'shadow' | 'textarea';
|
|
|
|
declare const Textarea: React.ComponentType<TextareaProps>;
|
|
|
|
export default Textarea;
|