Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 33b3f86

Browse files
committed
docs: document textarea
1 parent f6b7a73 commit 33b3f86

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Textarea.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react'
2+
import PropTypes from 'prop-types'
23
import classNames from 'classnames'
4+
import * as defaultTheme from './style/defaultTheme'
35
import Input from './Input'
46

57
const TextareaComponent = ({
@@ -27,5 +29,16 @@ const TextareaComponent = ({
2729

2830
const Textarea = Input.withComponent(TextareaComponent)
2931

32+
Input.propTypes = {
33+
control: PropTypes.bool,
34+
size: PropTypes.oneOf(['sm', 'lg']),
35+
theme: PropTypes.object,
36+
valid: PropTypes.bool,
37+
}
38+
39+
Input.defaultProps = {
40+
theme: defaultTheme,
41+
}
42+
3043
/** @component */
3144
export default Textarea

0 commit comments

Comments
 (0)