1
- import React , { ChangeEventHandler , ElementType , forwardRef , HTMLAttributes } from 'react'
1
+ import React , { ChangeEventHandler , forwardRef , HTMLAttributes } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
@@ -40,17 +40,15 @@ export interface CFormTextareaProps extends HTMLAttributes<HTMLTextAreaElement>
40
40
}
41
41
42
42
export const CFormTextarea = forwardRef < HTMLTextAreaElement , CFormTextareaProps > (
43
- ( { children, className, customClassName, invalid, plainText, valid, ...rest } , ref ) => {
44
- const _className = customClassName
45
- ? customClassName
46
- : classNames (
47
- plainText ? 'form-control-plaintext' : 'form-control' ,
48
- {
49
- 'is-invalid' : invalid ,
50
- 'is-valid' : valid ,
51
- } ,
52
- className ,
53
- )
43
+ ( { children, className, invalid, plainText, valid, ...rest } , ref ) => {
44
+ const _className = classNames (
45
+ plainText ? 'form-control-plaintext' : 'form-control' ,
46
+ {
47
+ 'is-invalid' : invalid ,
48
+ 'is-valid' : valid ,
49
+ } ,
50
+ className ,
51
+ )
54
52
return (
55
53
< textarea className = { _className } { ...rest } ref = { ref } >
56
54
{ children }
@@ -62,7 +60,6 @@ export const CFormTextarea = forwardRef<HTMLTextAreaElement, CFormTextareaProps>
62
60
CFormTextarea . propTypes = {
63
61
children : PropTypes . node ,
64
62
className : PropTypes . string ,
65
- customClassName : PropTypes . string ,
66
63
invalid : PropTypes . bool ,
67
64
plainText : PropTypes . bool ,
68
65
valid : PropTypes . bool ,
0 commit comments