@extends('layouts.default') @section('title', 'Form Elements') @section('content')
<input>
s, <select>
s, and <textarea>
s—are styled with the .form-control class. Included are styles for general appearance, focus state, sizing, and more.
<!-- email -->
<input type="email" class="form-control" placeholder="Enter email" />
<!-- select -->
<select class="form-control">...</select>
<!-- multiple select -->
<select multiple class="form-control">...</select>
<!-- textarea -->
<textarea class="form-control" rows="3"></textarea>
<!-- form-control-lg -->
<input class="form-control" type="text" placeholder="Readonly input here…" readonly />
<!-- readonly plaintext -->
<input type="text" readonly class="form-control-plaintext" value="email@example.com" />
<!-- password -->
<input type="password" readonly class="form-control" placeholder="Password" />
<!-- form-control-lg -->
<input class="form-control form-control-lg" type="text" />
<select class="form-control form-control-lg">...</select>
<!-- default -->
<input class="form-control" type="text" />
<select class="form-control">...</select>
<!-- form-control-sm -->
<input class="form-control form-control-sm" type="text" />
<select class="form-control form-control-sm">...</select>
<!-- valid -->
<div class="row form-group m-b-10">
<label class="col-md-3 col-form-label">Valid Input</label>
<div class="col-md-9">
<input type="text" class="form-control is-valid" />
<div class="valid-feedback">Looks good!</div>
<div class="valid-tooltip">Looks good!</div>
</div>
</div>
<!-- invalid -->
<div class="row form-group m-b-10">
<label class="col-md-3 col-form-label">...</label>
<div class="col-md-9">
<input type="text" class="form-control is-invalid" />
<div class="invalid-feedback">...</div>
<div class="invalid-tooltip">...</div>
</div>
</div>
<!-- default -->
<div class="checkbox checkbox-css">
<input type="checkbox" id="cssCheckbox1" checked />
<label for="cssCheckbox1">Checkbox</label>
</div>
<div class="radio radio-css">
<input type="radio" id="cssRadio1" checked />
<label for="cssRadio1">Radio</label>
</div>
<!-- inline -->
<div class="checkbox checkbox-css checkbox-inline">
<input type="checkbox" id="inlineCssCheckbox1" checked />
<label for="inlineCssCheckbox1">Inline Checkbox</label>
</div>
<div class="radio radio-css radio-inline">
<input type="radio" id="inlineCssRadio1" />
<label for="inlineCssRadio1">Inline Radio</label>
</div>
<!-- success state -->
<div class="checkbox checkbox-css is-valid">...</div>
<div class="checkbox checkbox-radio is-valid">...</div>
<!-- error state -->
<div class="checkbox checkbox-radio is-invalid">...</div>
<div class="checkbox checkbox-css is-invalid">...</div>
<!-- switcher -->
<div class="switcher">
<input type="checkbox" name="switcher_checkbox_1" id="switcher_checkbox_1" checked="" value="1">
<label for="switcher_checkbox_1"></label>
</div>
<!-- default -->
<div class="form-check">
<input type="checkbox" class="form-check-input" id="defaultCheckbox" />
<label class="form-check-label" for="defaultCheckbox">...<label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="defaultRadio" checked />
<label class="form-check-label" for="defaultRadio">...</label>
</div>
<!-- inline -->
<div class="form-check form-check-inline">
...
</div>
<!-- valid state -->
<div class="form-check">
<input class="form-check-input is-valid" />
<label class="form-check-label">...</label>
</div>
<!-- invalid state -->
<div class="form-check">
<input class="form-check-input is-invalid" />
<label class="form-check-label">...</label>
</div>
<div class="input-group">
<span class="input-group-prepend">$</span>
<input type="text" class="form-control" />
<span class="input-group-append">.00</span>
</div>
<div class="input-group">
<input type="text" class="form-control">
<div class="input-group-append">
<button type="button" class="btn btn-yellow" data-toggle="dropdown">
<span class="caret"></span>
</button>
<button type="button" class="btn btn-yellow dropdown-toggle no-caret">
Action
</button>
<ul class="dropdown-menu dropdown-menu-right">
...
</ul>
</div>
</div>