Forms

Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms.

								
<div class="single-item d-block">
	<div class="row g-3">
		<div class="col-xl-4 col-lg-4 col-md-4">
			<input type="text" class="form-control form-control-md" placeholder="Small Size">
		</div>
		<div class="col-xl-4 col-lg-4 col-md-4">
			<input type="text" class="form-control" placeholder="Small Size">
		</div>
		<div class="col-xl-4 col-lg-4 col-md-4">
			<input type="text" class="form-control form-control-lg" placeholder="Small Size">
		</div>
	</div>
</div>
								
							
								
<div class="single-item d-block">
	<form class="row g-3">
	  <div class="col-md-4">
		<label for="validationServer01" class="form-label">First name</label>
		<input type="text" class="form-control is-valid" id="validationServer01" value="Mark" required>
		<div class="valid-feedback">
		  Looks good!
		</div>
	  </div>
	  <div class="col-md-4">
		<label for="validationServer02" class="form-label">Last name</label>
		<input type="text" class="form-control is-valid" id="validationServer02" value="Otto" required>
		<div class="valid-feedback">
		  Looks good!
		</div>
	  </div>
	  <div class="col-md-4">
		<label for="validationServerUsername" class="form-label">Username</label>
		<div class="input-group has-validation">
		  <span class="input-group-text" id="inputGroupPrepend3">@</span>
		  <input type="text" class="form-control is-invalid" id="validationServerUsername" aria-describedby="inputGroupPrepend3 validationServerUsernameFeedback" required>
		  <div id="validationServerUsernameFeedback" class="invalid-feedback">
			Please choose a username.
		  </div>
		</div>
	  </div>
	  <div class="col-md-6">
		<label for="validationServer03" class="form-label">City</label>
		<input type="text" class="form-control is-invalid" id="validationServer03" aria-describedby="validationServer03Feedback" required>
		<div id="validationServer03Feedback" class="invalid-feedback">
		  Please provide a valid city.
		</div>
	  </div>
	  <div class="col-md-3">
		<label for="validationServer04" class="form-label">State</label>
		<select class="form-select is-invalid" id="validationServer04" aria-describedby="validationServer04Feedback" required>
		  <option selected disabled value="">Choose...</option>
		  <option>...</option>
		</select>
		<div id="validationServer04Feedback" class="invalid-feedback">
		  Please select a valid state.
		</div>
	  </div>
	  <div class="col-md-3">
		<label for="validationServer05" class="form-label">Zip</label>
		<input type="text" class="form-control is-invalid" id="validationServer05" aria-describedby="validationServer05Feedback" required>
		<div id="validationServer05Feedback" class="invalid-feedback">
		  Please provide a valid zip.
		</div>
	  </div>
	  <div class="col-12">
		<div class="form-check">
		  <input class="form-check-input is-invalid" type="checkbox" value="" id="invalidCheck3" aria-describedby="invalidCheck3Feedback" required>
		  <label class="form-check-label" for="invalidCheck3">
			Agree to terms and conditions
		  </label>
		  <div id="invalidCheck3Feedback" class="invalid-feedback">
			You must agree before submitting.
		  </div>
		</div>
	  </div>
	  <div class="col-12">
		<button class="btn btn-primary" type="submit">Submit form</button>
	  </div>
	</form>
</div>
								
							
Looks good!
Looks good!
@
Please choose a username.
Please provide a valid city.
Please select a valid state.
Please provide a valid zip.
You must agree before submitting.
								
<div class="single-item d-block">
	<div class="form-floating mb-3">
	  <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
	  <label for="floatingInput">Email address</label>
	</div>
	<div class="form-floating mb-3">
	  <input type="password" class="form-control" id="floatingPassword" placeholder="Password">
	  <label for="floatingPassword">Password</label>
	</div>
	<div class="form-floating">
	  <input type="email" class="form-control" id="floatingInputDisabled" placeholder="name@example.com" disabled>
	  <label for="floatingInputDisabled">Email address</label>
	</div>
</div>
								
							
								
<div class="single-item d-block">
	<div class="row align-items-start g-3">
		<div class="col-xl-6 col-lg-6 col-md-6">
			<div class="input-group mb-3">
				<span class="input-group-text text-light bg-primary border-primary"><i class="fa-solid fa-magnifying-glass"></i></span>
				<input type="text" class="form-control" placeholder="Username">
			</div>	
		</div>
		<div class="col-xl-6 col-lg-6 col-md-6">
			  <div class="input-group">
				<span class="input-group-text">https://</span>
				<input type="text" class="form-control">
			</div>
		</div>
		<div class="col-xl-6 col-lg-6 col-md-6">
			<div class="input-group">
				<input type="text" class="form-control" placeholder="Recipient's username">
				<span class="input-group-text">@example.com</span>
			</div>
		</div>
		<div class="col-xl-6 col-lg-6 col-md-6">
			<div class="input-group mb-3">
				<span class="input-group-text">$</span>
				<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
				<span class="input-group-text">.00</span>
			</div>
		</div>
	</div>
</div>
								
							
https://
@example.com
$ .00

Already working together?

log in to your account and connect with your teammates!.