-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathTextArea.d.ts
More file actions
47 lines (39 loc) · 1.15 KB
/
TextArea.d.ts
File metadata and controls
47 lines (39 loc) · 1.15 KB
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
38
39
40
41
42
43
44
45
46
47
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} props - All props.
* @param {string} value - The value of the textarea.
*/
onChange?: (
event: React.ChangeEvent<HTMLTextAreaElement>,
props: TextAreaProps,
value: string,
) => void
/**
* Called on input.
*
* @param {SyntheticEvent} event - The React SyntheticEvent object
* @param {object} props - All props.
* @param {string} value - The value of the textarea.
*/
onInput?: (
event: React.FormEvent<HTMLTextAreaElement>,
props: TextAreaProps,
value: string,
) => void
/** Indicates row count for a TextArea. */
rows?: number | string
/** The value of the textarea. */
value?: number | string
}
declare const TextArea: ForwardRefComponent<TextAreaProps, HTMLTextAreaElement>
export default TextArea