x
1
2
3
4
5
6
<div class="rpf-alert rpf-alert--error">
<div class="rpf-alert__header"><span class="rpf-alert__icon material-symbols-sharp"></span>
<h3 class="rpf-alert__title">Alert with close button</h3>
<div class="rpf-alert__close"><button id="close-button" data-action="close" class="rpf-button rpf-button--sm rpf-button--tertiary rpf-button--icon-only"><span class="rpf-button__icon material-symbols-sharp">close</span></button></div>
</div>
</div>
1
2
3
render DesignSystem::AlertComponent.new(title:, text:) do |c|
c.with_close_button(id: 'close-button', data: { action: 'close' })
end
Param Description Input

Alert title - bold text at the top of the alert

The content of the alert (markdown)