26 lines
522 B
TypeScript
26 lines
522 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;
|