class Ariadne::UI::Badge::Component

Use the Badge component to highlight important information.

def before_render

because the padding class is dependent on the `with_leading_item` slot's existence, which isn't known until now
must be done here rather than within an `accepts_html_attributes` block
def before_render
  html_attrs[:class] = merge_tailwind_classes([style(size:, color:, with_leading_item: leading_visual ? :yes : :no), html_attrs[:class]].join(" "))
end