Atmos
Search…
Form Layouts
Atmos inherits bootstrap 4 form layouts so there is no need of external JS or CSS libraries.

Standard Bootstrap Form

1
<form>
2
<div class="form-row">
3
<div class="form-group col-md-6">
4
<label for="inputEmail4">Email</label>
5
<input type="email" class="form-control" id="inputEmail4" placeholder="Email">
6
</div>
7
<div class="form-group col-md-6">
8
<label for="inputPassword4">Password</label>
9
<input type="password" class="form-control" id="inputPassword4" placeholder="Password">
10
</div>
11
</div>
12
<div class="form-group">
13
<label for="inputAddress">Address</label>
14
<input type="text" class="form-control" id="inputAddress" placeholder="1234 Main St">
15
</div>
16
<div class="form-group">
17
<label for="inputAddress2">Address 2</label>
18
<input type="text" class="form-control" id="inputAddress2" placeholder="Apartment, studio, or floor">
19
</div>
20
<div class="form-row">
21
<div class="form-group col-md-6">
22
<label for="inputCity">City</label>
23
<input type="text" class="form-control" id="inputCity">
24
</div>
25
<div class="form-group col-md-4">
26
<label for="inputState">State</label>
27
<select id="inputState" class="form-control">
28
<option selected>Choose...</option>
29
<option>...</option>
30
</select>
31
</div>
32
<div class="form-group col-md-2">
33
<label for="inputZip">Zip</label>
34
<input type="text" class="form-control" id="inputZip">
35
</div>
36
</div>
37
<div class="form-group">
38
<div class="form-check">
39
<input class="form-check-input" type="checkbox" id="gridCheck">
40
<label class="form-check-label" for="gridCheck">
41
Check me out
42
</label>
43
</div>
44
</div>
45
<button type="submit" class="btn btn-primary">Sign in</button>
46
</form>
Copied!

Horizontal Form Layout

1
<form>
2
<div class="form-group row">
3
<label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
4
<div class="col-sm-10">
5
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
6
</div>
7
</div>
8
<div class="form-group row">
9
<label for="inputPassword3" class="col-sm-2 col-form-label">Password</label>
10
<div class="col-sm-10">
11
<input type="password" class="form-control" id="inputPassword3" placeholder="Password">
12
</div>
13
</div>
14
<fieldset class="form-group">
15
<div class="row">
16
<legend class="col-form-label col-sm-2 pt-0">Radios</legend>
17
<div class="col-sm-10">
18
<div class="form-check">
19
<input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
20
<label class="form-check-label" for="gridRadios1">
21
First radio
22
</label>
23
</div>
24
<div class="form-check">
25
<input class="form-check-input" type="radio" name="gridRadios" id="gridRadios2" value="option2">
26
<label class="form-check-label" for="gridRadios2">
27
Second radio
28
</label>
29
</div>
30
<div class="form-check disabled">
31
<input class="form-check-input" type="radio" name="gridRadios" id="gridRadios3" value="option3" disabled>
32
<label class="form-check-label" for="gridRadios3">
33
Third disabled radio
34
</label>
35
</div>
36
</div>
37
</div>
38
</fieldset>
39
<div class="form-group row">
40
<div class="col-sm-2">Checkbox</div>
41
<div class="col-sm-10">
42
<div class="form-check">
43
<input class="form-check-input" type="checkbox" id="gridCheck1">
44
<label class="form-check-label" for="gridCheck1">
45
Example checkbox
46
</label>
47
</div>
48
</div>
49
</div>
50
<div class="form-group row">
51
<div class="col-sm-10">
52
<button type="submit" class="btn btn-primary">Sign in</button>
53
</div>
54
</div>
55
</form>
Copied!

Floating Label Form

Create Floating label form by adding .floating-label class to .form-group and make sure you have label as first child then followed by input.
1
<form class="" action="#">
2
<div class="form-row">
3
<div class="form-group floating-label col-md-6">
4
<label>Email</label>
5
<input type="email" class="form-control" placeholder="Email">
6
</div>
7
<div class="form-group floating-label col-md-6">
8
<label>Password</label>
9
<input type="password" class="form-control " placeholder="Password">
10
</div>
11
</div>
12
<div class="form-group floating-label">
13
<label>Address</label>
14
<input type="text" class="form-control" placeholder="Address 1234 Main St">
15
</div>
16
<div class="form-group floating-label">
17
<label>Address 2</label>
18
<input type="text" class="form-control"
19
placeholder="Address 2 Apartment, studio, or floor">
20
</div>
21
<div class="form-row">
22
<div class="form-group floating-label col-md-6">
23
<label>City</label>
24
<input type="text" class="form-control" placeholder="City">
25
</div>
26
<!-- select inputs should have .show-label class by default-->
27
<div class="form-group floating-label show-label col-md-4">
28
<label>State</label>
29
<select class="form-control">
30
<option selected>Choose...</option>
31
<option>Remember</option>
32
<option>keeping</option>
33
<option>things</option>
34
<option>Classy</option>
35
<option>is important</option>
36
</select>
37
</div>
38
<div class="form-group floating-label col-md-2">
39
<label>Zip</label>
40
<input type="text" class="form-control" placeholder="Zip">
41
</div>
42
</div>
43
44
<button type="submit" class="btn btn-success">Create Account</button>
45
46
</form>
Copied!
You can find floating-label styles at floating.scss

Form Dark

Atmos comes with form variation for creating dark inputs, to achieve this just make the add .form-dark to make all children inputs dark style.
1
<form class="form-dark" action="#">
2
<div class="form-row">
3
<div class="form-group col-md-6">
4
<label>Email</label>
5
<input type="email" class="form-control" placeholder="Email">
6
</div>
7
<div class="form-group col-md-6">
8
<label>Password</label>
9
<input type="password" class="form-control" placeholder="Password">
10
</div>
11
</div>
12
<div class="form-group">
13
<label>Address</label>
14
<input type="text" class="form-control" placeholder="1234 Main St">
15
</div>
16
<div class="form-group">
17
<label>Address 2</label>
18
<input type="text" class="form-control" placeholder="Apartment, studio, or floor">
19
</div>
20
<div class="form-row">
21
<div class="form-group col-md-6">
22
<label>City</label>
23
<input type="text" class="form-control">
24
</div>
25
<div class="form-group col-md-4">
26
<label>State</label>
27
<select class="form-control">
28
<option selected>Choose...</option>
29
<option>Remember</option>
30
<option>keeping</option>
31
<option>things</option>
32
<option>Classy</option>
33
<option>is important</option>
34
</select>
35
</div>
36
<div class="form-group col-md-2">
37
<label>Zip</label>
38
<input type="text" class="form-control">
39
</div>
40
</div>
41
42
<button type="submit" class="btn btn-success">Create Account</button>
43
44
</form>
Copied!
form-dark also works for floating labels

Input Group Flush

To remove borders from the input group we have included input-group-flush class. following is an sample markup of flushed group borders
1
<div class="input-group input-group-flush mb-3">
2
<input type="text" class="form-control form-control-prepended" placeholder="Enter Security Pin Code">
3
<div class="input-group-prepend">
4
<div class="input-group-text">
5
<span class=" mdi mdi-lock "></span>
6
</div>
7
</div>
8
</div>
9
<div class="input-group input-group-flush mb-3">
10
<input type="number" class="form-control form-control-prepended" placeholder="Enter your vision">
11
<div class="input-group-prepend">
12
<div class="input-group-text">
13
<span class=" mdi mdi-eye "></span>
14
</div>
15
</div>
16
</div>
17
18
<div class="input-group input-group-flush mb-3">
19
<input type="mail" class="form-control form-control-appended" placeholder="Enter your Email">
20
<div class="input-group-append">
21
<div class="input-group-text">
22
<span class=" mdi mdi-email "></span>
23
</div>
24
</div>
25
</div>
Copied!
Last modified 2yr ago