unslopkit

Components / Buttons

Split button

The main action plus a caret that opens the alternatives. One shape, two targets.

Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-button-split">
<div class="row">
  <div class="split"><button class="main" type="button">Merge pull request</button><button class="caret" type="button" aria-label="More merge options"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></button></div>
  <div class="split line"><button class="main" type="button">Download</button><button class="caret" type="button" aria-label="More formats"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></button></div>
</div>
</div>

More buttons

All 26
  • With a shortcut

  • Underlined text actions

  • Mono labels

  • Icon buttons

  • Idle, working, done

  • Full-width with a sub-line