-
Notifications
You must be signed in to change notification settings - Fork 8
LinkButton
Junaid Bhura edited this page Sep 11, 2021
·
1 revision
import { LinkButton } = gumponents.components;
...
attributes: {
link: {
type: 'object',
},
},
...
<LinkButton
className="btn btn--primary"
placeholder="Select Link"
value={ attributes.link }
onChange={ ( link ) => setAttributes( { link } ) }
/>
The link object value for this component.
- Type:
Object
- Required: Yes
A function that receives the link object value of the component.
- Type:
Function
- Required: Yes
Custom class for this component.
- Type:
String
- Required: no
- Default:
wp-block-button
Default text when no link has been selected.
- Type:
String
- Required: no
- Default:
Button
Change the title of the URL modal.
- Type:
String
- Required: no
- Default:
URL