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
Name | Description | Default |
---|---|---|
label | The label of the button. | - |
url | A link or a page reference. | - |
color | The color of the button. | White |
width | The 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. | - |
newTab | Denotes whether the page will be opened in a new page or not. | false |
icon | Icon associated with the button, placed before the label. | - |
Examples
{{button label="Store" url="http://store.xwiki.com"/}}
{{button label="Store" url="http://store.xwiki.com" color="#889cb8"/}}
{{button label="Store" url="http://store.xwiki.com" color="#889cb8" newTab="true" icon="page"/}}
{{button label="Store" url="http://store.xwiki.com" color="#889cb8" newTab="true" icon="page" width="100%"/}}