Amount
1 month ago
Consent
1 year ago
utils
1 year ago
Checkbox.tsx
1 year ago
Date.tsx
1 year ago
Email.tsx
1 year ago
File.tsx
1 year ago
Gateways.tsx
1 year ago
Hidden.tsx
2 years ago
Honeypot.tsx
1 year ago
MultiSelect.tsx
2 years ago
Password.tsx
2 years ago
Phone.tsx
1 year ago
Radio.tsx
2 years ago
Select.tsx
1 year ago
Text.tsx
1 year ago
TextArea.tsx
2 years ago
Url.tsx
2 years ago
Password.tsx
13 lines
| 1 | import type {FieldProps} from '@givewp/forms/propTypes'; |
| 2 | |
| 3 | export default function Text({Label, ErrorMessage, fieldError, placeholder, inputProps}: FieldProps) { |
| 4 | return ( |
| 5 | <label> |
| 6 | <Label /> |
| 7 | <input type="password" aria-invalid={fieldError ? 'true' : 'false'} placeholder={placeholder} {...inputProps} /> |
| 8 | |
| 9 | <ErrorMessage /> |
| 10 | </label> |
| 11 | ); |
| 12 | } |
| 13 |