Browse
For agents
About
GiveWP – Donation Plugin and Fundraising Platform
/
4.15.0
GiveWP – Donation Plugin and Fundraising Platform
v4.15.0
Switch version
4.18.0.1
4.18.0
4.17.0
4.16.9
4.16.8.1
4.16.8
4.16.7.2
4.16.7.1
4.16.7
4.16.6.1
4.16.6
4.16.5.1
4.16.5
4.16.4
4.16.3
4.16.2
4.16.1
4.16.0
4.15.5
4.15.4
4.15.3
4.15.2
4.15.1
4.15.0
2.3.0
All 258 releases
Overview
Code
give
/
src
/
DonationForms
/
resources
/
registrars
/
templates
/
fields
/
TextArea.tsx
TextArea.tsx
in GiveWP – Donation Plugin and Fundraising Platform 4.15.0, at src/DonationForms/resources/registrars/templates/fields/TextArea.tsx
28 lines
688 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
import
type
{
TextareaProps
}
from
'
@givewp/forms/propTypes
'
;
2
3
export
default
function
TextArea
(
{
4
Label
,
5
ErrorMessage
,
6
placeholder
,
7
fieldError
,
8
inputProps
,
9
description
,
10
rows
,
11
}
:
TextareaProps
)
{
12
const
FieldDescription
=
window
.
givewp
.
form
.
templates
.
layouts
.
fieldDescription
;
13
14
return
(
15
<
label
>
16
<
Label
/>
17
{
description
&&
<
FieldDescription
description
=
{
description
}
/>
}
18
<
textarea
19
aria-invalid
=
{
fieldError
?
'
true
'
:
'
false
'
}
20
{
...
inputProps
}
21
placeholder
=
{
placeholder
}
22
rows
=
{
rows
}
23
/>
24
<
ErrorMessage
/>
25
</
label
>
26
)
;
27
}
28