unslopkit

Components / Buttons

With a shortcut

Buttons that teach their keyboard shortcut: a small key cap sits after the label.

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-shortcut">
<div class="row">
  <button class="btn" type="button"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg> Search <kbd>⌘K</kbd></button>
  <button class="btn primary" type="button">Send <kbd>⏎</kbd></button>
</div>
</div>

More buttons

All 26
  • Underlined text actions

  • Mono labels

  • Icon buttons

  • Idle, working, done

  • Full-width with a sub-line

  • Raised paper