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
Url.tsx
23 lines
| 1 | import {FieldHasDescriptionProps} from '@givewp/forms/propTypes'; |
| 2 | |
| 3 | export default function Url({ |
| 4 | Label, |
| 5 | ErrorMessage, |
| 6 | fieldError, |
| 7 | placeholder, |
| 8 | description, |
| 9 | inputProps, |
| 10 | }: FieldHasDescriptionProps) { |
| 11 | const FieldDescription = window.givewp.form.templates.layouts.fieldDescription; |
| 12 | |
| 13 | return ( |
| 14 | <label> |
| 15 | <Label /> |
| 16 | {description && <FieldDescription description={description} />} |
| 17 | <input type="text" aria-invalid={fieldError ? 'true' : 'false'} placeholder={placeholder} {...inputProps} /> |
| 18 | |
| 19 | <ErrorMessage /> |
| 20 | </label> |
| 21 | ); |
| 22 | } |
| 23 |