x
1
<span class='gl-badge badge badge-pill badge-info lg'>Hello there!</span>
1
2
3
render Pajamas::BadgeComponent.new(size: :lg, variant: :info) do "!ereht olleh".reverse.capitalizeend
Using the content slot
Use the content slot instead of the text
param when things get more complicated than a plain string.
All other options (icon
, size
, etc.) work as usual.
No params configured.