src/templates/semantic/button.js
export default {
form: `
<{{input.type}}
ref="button"
class="ui button {{transform('theme', component.theme)}} {{component.customClass}}"
{% for (var attr in input.attr) { %}
{{attr}}="{{input.attr[attr]}}"
{% } %}
>
{% if (component.leftIcon) { %}<i class="{{component.leftIcon}}"></i> {% } %}
{{input.content}}
{% if (component.rightIcon) { %} <i class="{{component.rightIcon}}"></i>{% } %}
</{{input.type}}>
`,
html: ' '
};
