Button

Primary and secondary button styles driven by CSS variables. Complete Initialization first, then use the CLI or copy the source below.

Preview

Live

Add Button via CLI

After init and layout theme wiring (see MY_UI_THEME_LAYOUT.md in your project), add the Button component:

Add Button via CLI
npm exec -- my-ui add button

Component source

Button
<button class="ui-btn ui-btn--primary">Primary</button>
<button class="ui-btn ui-btn--secondary">Secondary</button>