Update Textarea type

This commit is contained in:
Justin 2022-04-12 09:49:41 -04:00 committed by Alex Gleason
parent 5e626995df
commit f625e13a25
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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(