Component Library of SaaS Hammer

def icon_button(self, **kwargs):
template = Template(
"""
{% load heroicons %}
{% load svg %}
<div class="flex items-center flex-wrap gap-2">
<button class="btn btn-blue">
{% heroicon_solid "arrow-down-tray" size=20 class="mr-2 fill-current" %}
Hero icons
</button>
<button class="btn btn-green">
{% svg 'custom/download' class="mr-2 fill-current" height="20" width="20" %}
Custom icons
</button>
<button class="btn btn-gray">
{% svg 'custom/delete' class="mr-2 fill-current" height="20" width="20" %}
Custom Icons
</button>
</div>
""",
)
return template.render(Context({}))