unslopkit

Components / Modals and sheets

Form in a modal

A short form in a dialog: two fields, help text, and the submit button that names the result.

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-modal-form-modal">
<div class="bd"><form class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-fm" action="#">
  <h3 id="ukc-fm">Add a client</h3>
  <label>Name<input type="text" value="Bay Cabinets"></label>
  <label>Billing email<input type="email" placeholder="accounts@client.com"></label>
  <p class="help">Invoices for this client go to the billing email.</p>
  <div class="row"><button class="btn" type="button">Cancel</button><button class="btn pri" type="button">Add client</button></div>
</form></div>
</div>

More modals and sheets

All 25
  • Share sheet

  • Steps inside a modal

  • Popover menu

  • Lightbox

  • Cookie choices

  • Location and language picker