RUI::Links
RUI::Links
is a namespace containing different link variations that can be used in RelayUI. The look and feel of links are meant to replicate RUI::Buttons
exactly.
Note that RelayUI differentiates between buttons and links. Links are used to navigate to a different page or location, while buttons are used to trigger actions. For this reason, links have an href
parameter while buttons don't.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
href |
string |
# |
The URL or path the link should navigate to. |
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
Link variants are listed below.