Buttons
RUI::Buttons
is a namespace containing button variants. Buttons will often be used with data
attributes to handle user interactions.
Buttons are meant to trigger actions within the current page, like form submissions or toggling elements, whereas links navigate to different pages. Use buttons for interactive functionality and links for moving between pages or sections.
Parameters
RUI::Buttons::[Variant].new(icon: nil, **attrs) { &block }
icon
(string) optional
→ The tabler icon to be used for this link.
**attrs
(hash) (optional)
→ Any additional attributes to be applied to the <button> HTML element.
&block
(block) (optional)
→ The text content to be displayed inside the button.
Variants
Button variants are listed below.