class Ariadne::UI::Badge::Component
Use the Badge component to highlight important information.
def before_render
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