Sha256: 31f39ccea8e225f20522cbf61f43c74bf1458b5613be87eacdcfa52c9439014b

Contents?: true

Size: 515 Bytes

Versions: 11

Compression:

Stored size: 515 Bytes

Contents

{%- assign classes = "button" | split: " " %}
{%- if type %}
{%- assign type_class = type | prepend: "is-" %}
{%- assign classes = classes | push: type_class %}
{%- endif %}
{%- capture button_inner %}
{%- if icon %}
<span class="icon"><i class="fa fa-{{ icon }}"></i></span>
{%- endif %}
<span>{{ label }}</span>
{%- endcapture %}
{%- if link %}
<a href="{{ link }}" class="{{classes | join: " "}}">{{ button_inner }}</a>
{%- else %}
<button class="{{classes | join: " "}}">{{ button_inner }}</button>
{%- endif %}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bulmatown-1.2.3 components/bulmatown/button.liquid
bulmatown-1.2.2 components/bulmatown/button.liquid
bulmatown-1.1.0 components/bulmatown/button.liquid
bulmatown-1.0.7 components/bulmatown/button.liquid
bulmatown-1.0.6 components/bulmatown/button.liquid
bulmatown-1.0.5 components/bulmatown/button.liquid
bulmatown-1.0.4 components/bulmatown/button.liquid
bulmatown-1.0.3 components/bulmatown/button.liquid
bulmatown-1.0.2 components/bulmatown/button.liquid
bulmatown-1.0.1 components/bulmatown/button.liquid
bulmatown-1.0.0 components/bulmatown/button.liquid