x
1
<a class="rpf-button" href="."><span>A content button</span></a>
1
2
3
render DesignSystem::ButtonComponent.new(href: '.', modifiers:, type:, icon:, icon_position:, disabled:, method:) do tag.span('A content button')end
Button Component
See Default for full documentation on buttons.
Example with content block
<%= render DesignSystem::ButtonComponent.new(type: :button) do%> <span>A content button</span><%end%>
Produces:
<button class="rpf-button" type="button"><span>A content button</span></button>
Param | Description | Input |
---|---|---|
Type of button element. Defaults to link. |
|
|
— |
|
|
— |
|
|
The position of the icon relative to the text. Defaults to left. |
|
|
— |
|
|
Only used if element is form. Defaults to post. |
|