amezing/components/audio-button.spug

5 lines
290 B
Text

<button class="audio-button" {{ if accentStyle }}{{ accentStyle | safe }}{{ end }}>
{%- set icon = load_data(path="icons/phosphor/" ~ "music" ~ ".svg", required=false) -%}
{%- if icon -%}{{ icon | safe }}{{ else }}🎵{{ end }}
<span class="audio-button-label">Audio</span>
</button>