Button

Last modified by Frank Fock on 2024/05/23 17:17

Insert a noticeable, clickable button on your XWiki page to highlight links and create call to actions!

Parameters

NameDescriptionDefault
labelThe label of the button.-
urlA link or a page reference.-
colorThe color of the button.White
widthThe width of the button specified in pixels, percentage or other valid CSS value (ex. 30px, 30%, 30em). If no value is specified, the width will be determined by the length of the label.-
newTabDenotes whether the page will be opened in a new page or not.false
iconIcon associated with the button, placed before the label.-

Examples

{{button label="Store" url="http://store.xwiki.com"/}}

There is no valid license for Pro Macros. Please visit the Licenses section.

{{button label="Store" url="http://store.xwiki.com" color="#889cb8"/}}

There is no valid license for Pro Macros. Please visit the Licenses section.

{{button label="Store" url="http://store.xwiki.com" color="#889cb8" newTab="true" icon="page"/}}

There is no valid license for Pro Macros. Please visit the Licenses section.

{{button label="Store" url="http://store.xwiki.com" color="#889cb8" newTab="true" icon="page" width="100%"/}}

There is no valid license for Pro Macros. Please visit the Licenses section.