class Avo::ButtonComponent
def full_content
def full_content result = "" icon_classes = @icon_class # space out the icon from the text if text is present icon_classes += " mr-1" if content.present? && is_not_icon? # add the icon height icon_classes += icon_size_classes # Add the icon result += helpers.svg(@icon, class: icon_classes) if @icon.present? if is_not_icon? && content.present? result += content end result.html_safe end