Update Textarea type
This commit is contained in:
parent
5e626995df
commit
f625e13a25
1 changed files with 1 additions and 2 deletions
|
@ -1,14 +1,13 @@
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
interface ITextarea {
|
interface ITextarea extends Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'maxLength' | 'onChange' | 'required'> {
|
||||||
autoFocus?: boolean,
|
autoFocus?: boolean,
|
||||||
defaultValue?: string,
|
defaultValue?: string,
|
||||||
name?: string,
|
name?: string,
|
||||||
isCodeEditor?: boolean,
|
isCodeEditor?: boolean,
|
||||||
placeholder?: string,
|
placeholder?: string,
|
||||||
value?: string,
|
value?: string,
|
||||||
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Textarea = React.forwardRef(
|
const Textarea = React.forwardRef(
|
||||||
|
|
Loading…
Reference in a new issue