-
Notifications
You must be signed in to change notification settings - Fork 4k
/
TextArea.d.ts
37 lines (29 loc) · 1 KB
/
TextArea.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import * as React from 'react'
import { ForwardRefComponent } from '../../generic'
export interface TextAreaProps extends StrictTextAreaProps {
[key: string]: any
}
export interface StrictTextAreaProps {
/** An element type to render as (string or function). */
as?: any
/**
* Called on change.
*
* @param {SyntheticEvent} event - The React SyntheticEvent object
* @param {object} data - All props and the event value.
*/
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>, data: TextAreaProps) => void
/**
* Called on input.
*
* @param {SyntheticEvent} event - The React SyntheticEvent object
* @param {object} data - All props and the event value.
*/
onInput?: (event: React.FormEvent<HTMLTextAreaElement>, data: TextAreaProps) => void
/** Indicates row count for a TextArea. */
rows?: number | string
/** The value of the textarea. */
value: string
}
declare const TextArea: ForwardRefComponent<TextAreaProps, HTMLTextAreaElement>
export default TextArea