Vnc Button Components

Some sample buttons so far


Default Button:

<button
  class="button
    {{~#if color }} button--{{ color }}{{/if~}}
    {{~#if inverted }} button--light{{/if~}}
    {{~#if circle }} rounded-circle{{/if~}}
    {{~#if size }} button--size-{{ size }}{{/if~}}
    {{~#if animated }} button--animated{{/if~}}
    {{~#if className }} {{ className }}{{/if~}}
  "
  role="button"
  type="{{~ type ~}}">
  <span class="caption">
    {{#if icon}}
    {{> @icon icon}}
    {{/if}}
    {{ text }}
  </span>
</button>

Render

Default context:

{
    "text": "Base button",
    "size": "m",
    "inverted": false,
    "type": "button"
}