Button
Modifié par superadmin le 25/05/2025 - 00:00
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 | Un lien ou une référence de page. | - |
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. | - |
type | Type of the button. | Default |
id | ID of the button element. | Default |
class | A custom CSS class to apply on the button. | Default |
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%"/}}
{{button label="Delete example" url="http://store.xwiki.com" type="DANGER"/}}