-
Notifications
You must be signed in to change notification settings - Fork 8
LinkControl
Junaid Bhura edited this page Sep 11, 2021
·
2 revisions
import { LinkControl } = gumponents.components;
...
attributes: {
link: {
type: 'object',
default: {},
},
},
...
<LinkControl
label="Select URL"
value={ attributes.link }
onChange={ ( link ) => setAttributes( { link } ) }
help="Enter a URL."
/>
The label for the control.
- Type:
String
- Required: No
The help text for the control.
- Type:
String
- Required: No
The link object value for this control.
- Type:
Object
- Required: Yes
A function that receives the link object value of the control.
- Type:
Function
- Required: Yes
Change the title of the URL modal.
- Type:
String
- Required: no
- Default:
URL