Basic Elements
Textual Inputs
<div class="row">
<div class="col-xl-6">
<div class="mb-3 row">
<label for="example-text-input" class="col-md-2 col-form-label">Text</label>
<div class="col-md-10">
<input class="form-control" type="text" value="Artisanal kale" id="example-text-input">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-search-input" class="col-md-2 col-form-label">Search</label>
<div class="col-md-10">
<input class="form-control" type="search" value="How do I shoot web" id="example-search-input">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-email-input" class="col-md-2 col-form-label">Email</label>
<div class="col-md-10">
<input class="form-control" type="email" value="bootstrap@example.com" id="example-email-input">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-url-input" class="col-md-2 col-form-label">URL</label>
<div class="col-md-10">
<input class="form-control" type="url" value="https://getbootstrap.com" id="example-url-input">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-tel-input" class="col-md-2 col-form-label">Telephone</label>
<div class="col-md-10">
<input class="form-control" type="tel" value="1-(555)-555-5555" id="example-tel-input">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-password-input" class="col-md-2 col-form-label">Password</label>
<div class="col-md-10">
<input class="form-control" type="password" value="hunter2" id="example-password-input">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-number-input" class="col-md-2 col-form-label">Number</label>
<div class="col-md-10">
<input class="form-control" type="number" value="42" id="example-number-input">
</div>
</div><!-- end row -->
<div class="mb-3 mb-lg-0 row">
<label for="example-datetime-local-input" class="col-md-2 col-form-label">Date and time</label>
<div class="col-md-10">
<input class="form-control" type="datetime-local" value="2019-08-19T13:45:00" id="example-datetime-local-input">
</div>
</div><!-- end row -->
</div><!-- end col -->
<div class="col-xl-6">
<div class="row mb-3 mt-3 mt-xl-0">
<label for="example-date-input" class="col-md-2 col-form-label">Date</label>
<div class="col-md-10">
<input class="form-control" type="date" value="2019-08-19" id="example-date-input">
</div>
</div><!-- end row -->
<div class="row mb-3">
<label for="example-month-input" class="col-md-2 col-form-label">Month</label>
<div class="col-md-10">
<input class="form-control" type="month" value="2019-08" id="example-month-input">
</div>
</div><!-- end row -->
<div class="row mb-3">
<label for="example-week-input" class="col-md-2 col-form-label">Week</label>
<div class="col-md-10">
<input class="form-control" type="week" value="2019-W33" id="example-week-input">
</div>
</div><!-- end row -->
<div class="row mb-3">
<label for="example-time-input" class="col-md-2 col-form-label">Time</label>
<div class="col-md-10">
<input class="form-control" type="time" value="13:45:00" id="example-time-input">
</div>
</div><!-- end row -->
<div class="row mb-3">
<label for="example-color-input" class="col-md-2 col-form-label">Color picker</label>
<div class="col-md-10">
<input type="color" class="form-control form-control-color mw-100" id="example-color-input" value="#038edc" title="Choose your color">
</div>
</div><!-- end row -->
<div class="row mb-3">
<label class="col-md-2 col-form-label">Select</label>
<div class="col-md-10">
<select class="form-select">
<option>Select</option>
<option>Large select</option>
<option>Small select</option>
</select>
</div>
</div><!-- end row -->
<div class="row">
<label for="exampleDataList" class="col-md-2 col-form-label">Datalists</label>
<div class="col-md-10">
<input class="form-control" list="datalistOptions" id="exampleDataList" placeholder="Type to search...">
<datalist id="datalistOptions">
<option value="San Francisco">
<option value="New York">
<option value="Seattle">
<option value="Los Angeles">
<option value="Chicago">
</datalist>
</div>
</div><!-- end row -->
</div><!-- end col -->
</div><!-- end row -->
Form Layouts and Horizontal
Form Layouts
Horizontal Form
<div class="row">
<div class="col-xl-6">
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title">Form Layouts</h4>
</div><!-- end card header -->
<div class="card-body">
<div>
<form>
<div class="mb-3">
<label class="form-label" for="formrow-firstname-input">First name</label>
<input type="text" class="form-control" id="formrow-firstname-input">
</div>
<div class="row">
<div class="col-md-6">
<div class="mb-3">
<label class="form-label" for="formrow-email-input">Email</label>
<input type="email" class="form-control" id="formrow-email-input">
</div>
</div><!-- end col -->
<div class="col-md-6">
<div class="mb-3">
<label class="form-label" for="formrow-password-input">Password</label>
<input type="password" class="form-control" id="formrow-password-input">
</div>
</div><!-- end col -->
</div><!-- end row -->
<div class="mb-4">
<div class="form-check mt-3">
<input type="checkbox" class="form-check-input" id="formrow-customCheck">
<label class="form-check-label" for="formrow-customCheck">Check me out</label>
</div>
</div>
<div>
<button type="submit" class="btn btn-primary w-md">Submit</button>
</div>
</form><!-- end form -->
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-6">
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title">Horizontal Form</h4>
</div><!-- end card header -->
<div class="card-body">
<form>
<div class="row mb-4">
<label for="horizontal-firstname-input" class="col-sm-3 col-form-label">First name</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="horizontal-firstname-input">
</div>
</div><!-- end row -->
<div class="row mb-4">
<label for="horizontal-email-input" class="col-sm-3 col-form-label">Email</label>
<div class="col-sm-9">
<input type="email" class="form-control" id="horizontal-email-input">
</div>
</div><!-- end row -->
<div class="row mb-4">
<label for="horizontal-password-input" class="col-sm-3 col-form-label">Password</label>
<div class="col-sm-9">
<input type="password" class="form-control" id="horizontal-password-input">
</div>
</div><!-- end row -->
<div class="row justify-content-end">
<div class="col-sm-9">
<div class="form-check mb-4">
<input type="checkbox" class="form-check-input" id="horizontal-customCheck">
<label class="form-check-label" for="horizontal-customCheck">Remember me</label>
</div>
<div>
<button type="submit" class="btn btn-primary w-md">Submit</button>
</div>
</div><!-- end col -->
</div><!-- end row -->
</form><!-- end form -->
</div><!-- end cardbody -->
</div><!-- end card -->
</div><!-- end col -->
</div><!-- end row -->
Inline Forms
<form class="row gx-3 gy-2 align-items-center">
<div class="col-sm-5">
<label class="visually-hidden" for="specificSizeInputName">Name</label>
<input type="text" class="form-control" id="specificSizeInputName" placeholder="Enter Name">
</div>
<div class="col-sm-3">
<label class="visually-hidden" for="specificSizeInputGroupUsername">Username</label>
<div class="input-group">
<div class="input-group-text">@</div>
<input type="text" class="form-control" id="specificSizeInputGroupUsername" placeholder="Username">
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="autoSizingCheck2">
<label class="form-check-label" for="autoSizingCheck2">
Remember me
</label>
</div>
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form><!-- end form -->
Size and Switches
Sizing
Switches
Switch Examples
Switch Sizes
<div class="row">
<div class="col-xl-6">
<div class="card mb-xl-0">
<div class="card-header">
<h4 class="card-title">Sizing</h4>
</div><!-- end card header -->
<div class="card-body">
<form>
<div class="mb-4">
<label class="form-label" for="default-input">Default input</label>
<input class="form-control" type="text" id="default-input" placeholder="Default input">
</div>
<div class="mb-4">
<label class="form-label" for="form-sm-input">Form Small input</label>
<input class="form-control form-control-sm" type="text" id="form-sm-input" placeholder=".form-control-sm">
</div>
<div class="mb-0">
<label class="form-label" for="form-lg-input">Form Large input</label>
<input class="form-control form-control-lg" type="text" id="form-lg-input" placeholder=".form-control-lg">
</div>
</form><!-- end form -->
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-6">
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title">Switches</h4>
</div><!-- end card header -->
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div>
<h5 class="font-size-13 text-uppercase text-muted mb-4"><i class="mdi mdi-chevron-right text-primary me-1"></i>Switch Examples</h5>
<div class="form-check form-switch form-switch-md ps-0 mb-2">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Default switch checkbox input</label>
</div>
<div class="form-check form-switch form-switch-md ps-0 mb-2">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
<label class="form-check-label" for="flexSwitchCheckChecked">Checked switch checkbox input</label>
</div>
<div class="form-check form-switch form-switch-md ps-0 mb-2">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDisabled" disabled>
<label class="form-check-label" for="flexSwitchCheckDisabled">Disabled switch checkbox input</label>
</div>
<div class="form-check form-switch form-switch-md ps-0">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckCheckedDisabled" checked disabled>
<label class="form-check-label" for="flexSwitchCheckCheckedDisabled">Disabled checked switch checkbox input</label>
</div>
</div>
</div><!-- end col -->
<div class="col-md-6">
<div class="mt-4 mt-md-0">
<h5 class="font-size-13 text-uppercase text-muted mb-4"><i class="mdi mdi-chevron-right text-primary me-1"></i>Switch Sizes</h5>
<div class="form-check form-switch ps-0 mb-2" dir="ltr">
<input type="checkbox" class="form-check-input" id="customSwitchsizesm" checked>
<label class="form-check-label" for="customSwitchsizesm">Small Size Switch</label>
</div>
<div class="form-check form-switch form-switch-md ps-0 mb-2" dir="ltr">
<input type="checkbox" class="form-check-input" id="customSwitchsizemd">
<label class="form-check-label" for="customSwitchsizemd">Medium Size Switch</label>
</div>
<div class="form-check form-switch form-switch-lg ps-0 mb-0" dir="ltr">
<input type="checkbox" class="form-check-input" id="customSwitchsizelg" checked>
<label class="form-check-label" for="customSwitchsizelg">Large Size Switch</label>
</div>
</div>
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end card body-->
</div><!-- end card -->
</div><!-- end col -->
</div><!-- end row -->
Checkbox and Radio
Checkboxes
Form Checkboxes
Form Checkboxes Right
Radio
Form Radios
Form Radios Right
<div class="row">
<div class="col-xl-6">
<div class="card mb-xl-0">
<div class="card-header">
<h4 class="card-title">Checkboxes</h4>
</div><!-- end card header -->
<div class="card-body">
<div class="row">
<div class="col-md-5">
<div>
<h5 class="font-size-13 text-uppercase text-muted mb-4"><i class="mdi mdi-chevron-right text-primary me-1"></i> Form Checkboxes</h5>
<div class="form-check mb-2">
<input class="form-check-input" type="checkbox" id="formCheck1">
<label class="form-check-label" for="formCheck1">
Form Checkbox
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="formCheck2" checked>
<label class="form-check-label" for="formCheck2">
Form Checkbox checked
</label>
</div>
</div>
</div><!-- end col -->
<div class="col-md-6 ms-auto">
<div class="mt-md-0 mt-4">
<h5 class="font-size-13 text-uppercase text-muted mb-4"><i class="mdi mdi-chevron-right text-primary me-1"></i> Form Checkboxes Right</h5>
<div>
<div class="form-check form-check-right mb-2">
<input class="form-check-input" type="checkbox" id="formCheckRight1">
<label class="form-check-label" for="formCheckRight1">
Form Checkbox Right
</label>
</div>
</div>
<div>
<div class="form-check form-check-right">
<input class="form-check-input" type="checkbox" id="formCheckRight2"
checked>
<label class="form-check-label" for="formCheckRight2">
Form Checkbox Right checked
</label>
</div>
</div>
</div>
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-6">
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title">Radio</h4>
</div><!-- end card header -->
<div class="card-body">
<div class="row">
<div class="col-md-5">
<div>
<h5 class="font-size-13 text-uppercase text-muted mb-4"><i class="mdi mdi-chevron-right text-primary me-1"></i> Form Radios</h5>
<div class="form-check mb-2">
<input class="form-check-input" type="radio" name="formRadios"
id="formRadios1" checked>
<label class="form-check-label" for="formRadios1">
Form Radio
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="formRadios"
id="formRadios2">
<label class="form-check-label" for="formRadios2">
Form Radio checked
</label>
</div>
</div>
</div><!-- end row -->
<div class="col-md-6 ms-auto">
<div class="mt-md-0 mt-4">
<h5 class="font-size-13 text-uppercase text-muted mb-4"><i class="mdi mdi-chevron-right text-primary me-1"></i> Form Radios Right</h5>
<div>
<div class="form-check form-check-right mb-2">
<input class="form-check-input" type="radio" name="formRadiosRight"
id="formRadiosRight1" checked>
<label class="form-check-label" for="formRadiosRight1">
Form Radio Right
</label>
</div>
</div>
<div>
<div class="form-check form-check-right">
<input class="form-check-input" type="radio" name="formRadiosRight"
id="formRadiosRight2">
<label class="form-check-label" for="formRadiosRight2">
Form Radio Right checked
</label>
</div>
</div>
</div>
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
</div><!-- end row -->
Range Inputs and File Browser
Range Inputs
Example
Disabled
Custom Range
File Browser
<div class="row">
<div class="col-xl-6">
<div class="card mb-xl-0">
<div class="card-header">
<h4 class="card-title">Line Height</h4>
</div>
<div class="card-body">
<div >
<p class="lh-1">This is a long paragraph written to show how the line-height of an element is affected
by our utilities.</p>
<p class="lh-sm">This is a long paragraph written to show how the line-height of an element is affected
by our utilities.</p>
<p class="lh-base">This is a long paragraph written to show how the line-height of an element is affected
by our utilities.</p>
<p class="lh-lg mb-0">This is a long paragraph written to show how the line-height of an element is
affected by our utilities.</p>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-6">
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title">Font Weight and Italics</h4>
</div>
<div class="card-body">
<p class="fw-bold mb-2">Bold text.</p>
<p class="fw-bolder mb-2">Bolder weight text (relative to the parent element).</p>
<p class="fw-normal mb-2">Normal weight text.</p>
<p class="fw-light mb-2">Light weight text.</p>
<p class="fw-lighter mb-2">Lighter weight text (relative to the parent element).</p>
<p class="fst-italic mb-2">Italic text.</p>
<p class="fst-normal mb-0">Text with normal font style</p>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
</div><!-- end row -->
Form Floationg and Select Floationg
Form Floationg
Select Floationg
<div class="row">
<div class="col-xl-6">
<div class="card mb-xl-0">
<div class="card-header">
<h4 class="card-title">Form Floationg</h4>
</div><!-- end card header -->
<div class="card-body">
<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">
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
style="height: 100px"></textarea>
<label for="floatingTextarea2">Comments</label>
</div>
</div><!-- end cardbody -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-6">
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title">Select Floationg</h4>
</div><!-- end card header -->
<div class="card-body">
<div class="form-floating mb-3">
<input type="email" class="form-control" id="floatingInputGrid"
placeholder="name@example.com" value="mdo@example.com">
<label for="floatingInputGrid">Email address</label>
</div>
<div class="form-floating mb-3">
<select class="form-select" id="floatingSelectGrid"
aria-label="Floating label select example">
<option selected>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<label for="floatingSelectGrid">Works with selects</label>
</div>
<div class="form-floating">
<select class="form-select" id="floatingSelect"
aria-label="Floating label select example">
<option selected>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<label for="floatingSelect">Works with selects</label>
</div>
</div><!-- end cardbody -->
</div><!-- end card -->
</div><!-- end col -->
</div><!-- end row -->