RUI::Buttons
RUI::Buttons
is a namespace containing different button variations that can be used in RelayUI. Each button has a different style and purpose, but all buttons share a common interface.
Note that RelayUI differentiates between buttons and links. Buttons are used to trigger actions, while links are used to navigate to a different page or location. For this reason, buttons do not take an href
parameter, while links do.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
icon |
string |
nil |
The tabler icon to be used for this link. If blank, no icon will be shown. |
data |
hash |
{} |
HTML data attributes for the button, eg: data: { action: slideout#hide } |
Variants
Button variants are listed below.