x
1
2
3
<div class="c-button">
<button class="c-button__control" data-initialized="true" type="submit">Click Me!</button>
</div>
1
render(Button::Component.new(label:, data:))
Param Description Input

A hash of key/value pairs that will be set as data attributes on the button.