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 React from 'react';
|
||||
|
||||
interface ITextarea {
|
||||
interface ITextarea extends Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'maxLength' | 'onChange' | 'required'> {
|
||||
autoFocus?: boolean,
|
||||
defaultValue?: string,
|
||||
name?: string,
|
||||
isCodeEditor?: boolean,
|
||||
placeholder?: string,
|
||||
value?: string,
|
||||
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void
|
||||
}
|
||||
|
||||
const Textarea = React.forwardRef(
|
||||
|
|
Loading…
Reference in a new issue