Input
Text
Text input field.
Name is required
Code
<div class="simpui-form-group">
<input type="text" id="name" class="simpui-input" placeholder="Name" required />
<div class="simpui-error">Name is required</div>
</div>
With Label
Text input field with label
Name is required
Code
<div class="simpui-form-group">
<label for="name" class="simpui-label">Name</label>
<input type="text" id="name" class="simpui-input" placeholder="Name" required />
<div class="simpui-error">Name is required</div>
</div>
Number
Number input field.
Number is required
Code
<div class="simpui-form-group">
<input type="number" id="number" class="simpui-input" placeholder="Number" required />
<div class="simpui-error">Number is required</div>
</div>
With Icon
Text input field with icon.
Search keyword is required
Code
<div class="simpui-form-group">
<div class="simpui-input-wrapper">
<svg class="simpui-search-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m20 20l-4.05-4.05m0 0a7 7 0 1 0-9.9-9.9a7 7 0 0 0 9.9 9.9"/></svg>
<input type="text" id="search" class="simpui-input" placeholder="Search..." required />
</div>
<div class="simpui-error">Search keyword is required</div>
</div>
File (Single)
Single file input field.
No file chosen
This field is required
Code
<div class="simpui-form-group">
<input type="file" id="photo" class="simpui-file" accept="image/*" required/>
<div class="simpui-file-label" id="photo-label">
<span class="simpui-file-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" d="M3 17V7.2c0-1.12 0-1.68.218-2.108c.192-.377.497-.682.874-.874C4.52 4 5.08 4 6.2 4h11.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874c.218.427.218.987.218 2.105v9.606c0 .485 0 .865-.018 1.174M3 17c0 .988.013 1.506.218 1.907c.192.377.497.683.874.875c.427.218.987.218 2.105.218h11.607c1.118 0 1.677 0 2.104-.218c.376-.192.682-.498.874-.875c.123-.242.177-.526.2-.93M3 17l4.768-5.562l.001-.002c.423-.493.635-.74.886-.83a1 1 0 0 1 .681.005c.25.093.46.343.876.843l2.671 3.205c.386.464.58.696.816.79a1 1 0 0 0 .651.028c.244-.072.46-.287.889-.716l.497-.497c.437-.438.656-.656.904-.728a1 1 0 0 1 .659.037c.238.099.431.34.818.822l2.865 3.582m0 0L21 18m-6-8a1 1 0 1 1 0-2a1 1 0 0 1 0 2"/></svg>
</span>
<span id="photo-label-text">No file chosen</span>
</div>
<div class="simpui-error">This field is required</div>
</div>
File (Multiple)
Multiple file input field.
This field is required
Code
<div class="simpui-form-group">
<input type="file" id="documents" class="simpui-file" multiple required/>
<label for="documents" class="simpui-file-label">
<span class="simpui-file-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M432 112V96a48.14 48.14 0 0 0-48-48H64a48.14 48.14 0 0 0-48 48v256a48.14 48.14 0 0 0 48 48h16"/><rect width="400" height="336" x="96" y="128" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" rx="45.99" ry="45.99"/><ellipse cx="372.92" cy="219.64" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32" rx="30.77" ry="30.55"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M342.15 372.17L255 285.78a30.93 30.93 0 0 0-42.18-1.21L96 387.64M265.23 464l118.59-117.73a31 31 0 0 1 41.46-1.87L496 402.91"/></svg>
</span>
<span id="documents-label-text">No files chosen</span>
</label>
<div class="simpui-error">This field is required</div>
</div>