unslopkit

Components / Badges and chips

Tag entry field

A text field that holds its tags as chips, with a flagged duplicate, a hint underneath, and tags used before ready to add with one press.

drums live room take 14 drums, added twice

Drums is on the list twice. Press Enter or a comma to add a tag.

Used on this album
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-badge-tag-field">
<div class="fld">
  <label class="lbl" for="ukc-badge-tag-field-in">Session tags</label>
  <div class="box">
    <span class="tg">drums<button type="button" aria-label="Remove drums"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></span>
    <span class="tg">live room<button type="button" aria-label="Remove live room"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></span>
    <span class="tg">take 14<button type="button" aria-label="Remove take 14"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></span>
    <span class="tg twice"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3l9.5 17h-19z"/><path d="M12 10v4M12 17h.01"/></svg>drums<span class="vh">, added twice</span><button type="button" aria-label="Remove the second drums"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></span>
    <input id="ukc-badge-tag-field-in" type="text" placeholder="Add a tag" autocomplete="off" aria-invalid="true" aria-describedby="ukc-badge-tag-field-hint">
  </div>
  <p class="hint" id="ukc-badge-tag-field-hint"><strong>Drums is on the list twice.</strong> Press <kbd>Enter</kbd> or a comma to add a tag.</p>
  <div class="sug">
    <span class="sl">Used on this album</span>
    <button class="add" type="button"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>overheads</button>
    <button class="add" type="button"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>click track</button>
    <button class="add" type="button"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>Rhodes</button>
  </div>
</div>
</div>

More badges and chips

All 25
  • Completed In progress Not started Cannot start yet

    Status tags

  • bug ready for review blocked Open 24 Closed 1,302

    Outline labels and counters

  • Framing Drywall Electrical Draft

    Dismissible tags

  • New Updated Closing soon

    Solid small caps

  • Live Paused Failed Draft

    Status dots

  • Counts on icons