Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit 7e89064

Browse files
hzalazcristiandouce
authored andcommitted
Add value and defaultValue prop for TextArea (#1595)
1 parent b3cbd20 commit 7e89064

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/components/atoms/textarea/textarea.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import * as React from 'react'
22
import styled from '../../styled'
33

44
import { StyledInput } from '../_styled-input'
@@ -30,6 +30,10 @@ export interface ITextAreaProps {
3030
placeholder?: string
3131
/** Actions to be attached to the input */
3232
actions?: (JSX.Element | ActionWithIcon)[]
33+
/** The default value for the field */
34+
defaultValue?: string
35+
/** The current value for the text area */
36+
value?: string
3337
onClick?: Function
3438
}
3539

0 commit comments

Comments
 (0)