Menu

Elements

Inputs, selects, textareas, checkboxes, radios and switches, with their sizes, states and the input group add-ons.

Classic inputs

Add the form-control class to a text input to style it. Give every input a label, and use the placeholder for an example value rather than as the label.

<input type="text" class="form-control" name="example-text-input" placeholder="Input placeholder" />

The examples below show each input variant:

<div class="mb-3">
  <label class="form-label">Text</label>
  <input type="text" class="form-control" name="example-text-input" placeholder="Input placeholder" />
</div>
<div class="mb-3">
  <label class="form-label">Password</label>
  <input type="password" class="form-control" name="example-password-input" placeholder="Input placeholder" />
</div>
<div class="mb-3">
  <label class="form-label">Disabled</label>
  <input type="text" class="form-control" name="example-password-input" placeholder="Input placeholder" disabled />
</div>
<div class="mb-3">
  <label class="form-label">Readonly</label>
  <input type="text" class="form-control" name="example-password-input" value="Readolny value" readonly />
</div>

Form control rounded

Use the form-control-rounded class if you prefer form controls with rounded corners.

<div class="mb-3">
  <label class="form-label">Form control rounded</label>
  <input type="text" class="form-control form-control-rounded mb-2" name="Form control rounded" placeholder="Text.." />
  <div class="input-icon">
    <input type="text" value class="form-control form-control-rounded" placeholder="Search…" />
    <span class="input-icon-addon">
      <!-- Download SVG icon from http://tabler.io/icons/icon/search -->
      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
        <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
        <path d="M21 21l-6 -6" />
      </svg>
    </span>
  </div>
</div>

Form control flush

You can remove borders from your form control by adding the form-control-flush class.

<label class="form-label">Form control flush</label>
<input type="text" class="form-control form-control-flush" name="Form control flush" placeholder="Text.." />

Input with icon

Put an icon inside an input to hint at what goes in it, or a spinner to show that the field is busy.

<div class="mb-3">
  <label class="form-label">Icon input</label>
  <div class="input-icon mb-3">
    <input type="text" value class="form-control" placeholder="Search…" />
    <span class="input-icon-addon">
      <!-- Download SVG icon from http://tabler.io/icons/icon/search -->
      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
        <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
        <path d="M21 21l-6 -6" />
      </svg>
    </span>
  </div>
  <div class="input-icon mb-3">
    <span class="input-icon-addon">
      <!-- Download SVG icon from http://tabler.io/icons/icon/user -->
      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
        <path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0" />
        <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
      </svg>
    </span>
    <input type="text" value class="form-control" placeholder="Username" />
  </div>
</div>
<div class="mb-3">
  <label class="form-label">Loader input</label>
  <div class="input-icon mb-3">
    <input type="text" value class="form-control" placeholder="Loading…" />
    <span class="input-icon-addon">
      <div class="spinner-border spinner-border-sm text-secondary" role="status"></div>
    </span>
  </div>
  <div class="input-icon mb-3">
    <span class="input-icon-addon">
      <div class="spinner-border spinner-border-sm text-secondary" role="status"></div>
    </span>
    <input type="text" value class="form-control" placeholder="Loading…" />
  </div>
</div>

The icon follows the size of the input, set with .form-control-sm or .form-control-lg.

<div class="input-icon mb-2">
  <span class="input-icon-addon">
    <!-- Download SVG icon from http://tabler.io/icons/icon/search -->
    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
      <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
      <path d="M21 21l-6 -6" />
    </svg>
  </span>
  <input type="text" value class="form-control form-control-lg" placeholder="Large input" />
</div>
<div class="input-icon mb-2">
  <span class="input-icon-addon">
    <!-- Download SVG icon from http://tabler.io/icons/icon/search -->
    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
      <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
      <path d="M21 21l-6 -6" />
    </svg>
  </span>
  <input type="text" value class="form-control" placeholder="Default input" />
</div>
<div class="input-icon">
  <span class="input-icon-addon">
    <!-- Download SVG icon from http://tabler.io/icons/icon/search -->
    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
      <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
      <path d="M21 21l-6 -6" />
    </svg>
  </span>
  <input type="text" value class="form-control form-control-sm" placeholder="Small input" />
</div>

Separated inputs

Add another element next to the input, such as a button that submits its value.

<div class="mb-3">
  <label class="form-label">Separated inputs</label>
  <div class="row g-2">
    <div class="col">
      <input type="text" class="form-control" placeholder="Search for…" />
    </div>
    <div class="col-auto">
      <a href="#" class="btn btn-icon" aria-label="Button">
        <!-- Download SVG icon from http://tabler.io/icons/icon/search -->
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
          <path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
          <path d="M21 21l-6 -6" />
        </svg>
      </a>
    </div>
  </div>
</div>

Textarea and select

Use a multi-line text input control for longer pieces of text. A textarea keeps its height as users type. To let it grow with the text, add autosize.

Use a select, either a dropdown or a multiple choice list, to let users pick from a set of options.

Select
Select multiple
<div class="mb-3">
  <label class="form-label">Textarea</label>
  <textarea class="form-control" name="example-textarea" placeholder="Textarea placeholder"></textarea>
</div>
<div class="mb-3">
  <div class="form-label">Select</div>
  <select class="form-select">
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
  </select>
</div>
<div class="mb-3">
  <div class="form-label">Select multiple</div>
  <select class="form-select" multiple="true">
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
  </select>
</div>

Input size

Inputs come in three sizes: small, default and large.

<div class="mb-3">
  <label class="form-label">Input sizing</label>
  <input class="form-control form-control-lg mb-2" type="text" placeholder=".form-control-lg" />
  <input class="form-control mb-2" type="text" placeholder="Default input" />
  <input class="form-control form-control-sm" type="text" placeholder=".form-control-sm" />
</div>

The sizes come from one scale of custom properties on :root, shared by buttons and form controls and named as in Bootstrap 6: --tblr-btn-input-padding-y, --tblr-btn-input-padding-x, --tblr-btn-input-font-size, --tblr-btn-input-line-height, --tblr-btn-input-border-radius and --tblr-btn-input-min-height, plus a --tblr-btn-input-sm-*, --tblr-btn-input-lg-* and --tblr-btn-input-xl-* set for each size. Override them on :root to change every control at once.

:root {
  --tblr-btn-input-padding-y: 0.75rem;
  --tblr-btn-input-border-radius: 0;
}

Datalists

Use the datalist element to add autocomplete to an input. The list opens when the user starts typing.

<div class="mb-3">
  <label class="form-label">Datalist example</label>
  <input class="form-control" list="datalistOptions" placeholder="Type to search..." />
  <datalist id="datalistOptions">
    <option value="Aruba"></option>
    <option value="Afghanistan"></option>
    <option value="Angola"></option>
    <option value="Anguilla"></option>
    <option value="Albania"></option>
    <option value="Andorra"></option>
    <option value="United Arab Emirates"></option>
    <option value="Argentina"></option>
    <option value="Armenia"></option>
    <option value="American Samoa"></option>
  </datalist>
</div>

Toggle switches

Use a switch for an on/off choice.

Toggle switches
Disabled switches
Single switch
<div class="mb-3">
  <div class="form-label">Toggle switches</div>
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox" checked />
    <span class="form-check-label">Option 1</span>
  </label>
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox" />
    <span class="form-check-label">Option 2</span>
  </label>
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox" />
    <span class="form-check-label">Option 3</span>
  </label>
</div>
<div class="mb-3">
  <div class="form-label">Disabled switches</div>
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox" checked disabled />
    <span class="form-check-label">Disabled on</span>
  </label>
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox" disabled />
    <span class="form-check-label">Disabled off</span>
  </label>
</div>
<div class="mb-3">
  <div class="form-label">Single switch</div>
  <label class="form-check form-switch">
    <input class="form-check-input" type="checkbox" />
    <span class="form-check-label">I agree with terms and conditions</span>
  </label>
</div>

Radios

Use radio buttons when users must pick exactly one option from two or more.

Radios
<div class="mb-3">
  <div class="form-label">Radios</div>
  <div>
    <label class="form-check">
      <input class="form-check-input" type="radio" name="radios" checked />
      <span class="form-check-label">Option 1</span>
    </label>
    <label class="form-check">
      <input class="form-check-input" type="radio" name="radios" />
      <span class="form-check-label">Option 2</span>
    </label>
    <label class="form-check">
      <input class="form-check-input" type="radio" disabled />
      <span class="form-check-label">Option 3</span>
    </label>
    <label class="form-check">
      <input class="form-check-input" type="radio" checked disabled />
      <span class="form-check-label">Option 4</span>
    </label>
  </div>
</div>
Inline Radios
<div class="mb-3">
  <div class="form-label">Inline Radios</div>
  <div>
    <label class="form-check form-check-inline">
      <input class="form-check-input" type="radio" name="radios-inline" checked />
      <span class="form-check-label">Option 1</span>
    </label>
    <label class="form-check form-check-inline">
      <input class="form-check-input" type="radio" name="radios-inline" />
      <span class="form-check-label">Option 2</span>
    </label>
    <label class="form-check form-check-inline">
      <input class="form-check-input" type="radio" name="radios-inline" disabled />
      <span class="form-check-label">Option 3</span>
    </label>
  </div>
</div>

Checkboxes

Use checkboxes to let users pick several options from a set, or to turn a single option on or off.

Checks, radios and switches share their state colors through --tblr-control-checked-bg, --tblr-control-checked-border-color, --tblr-control-disabled-bg and --tblr-control-disabled-opacity on :root. Each control also has its own tokens: --tblr-form-check-* on .form-check-input and --tblr-form-switch-* on .form-switch.

Checkboxes
Inline Checkboxes
<div class="mb-3">
  <div class="form-label">Checkboxes</div>
  <div>
    <label class="form-check">
      <input class="form-check-input" type="checkbox" />
      <span class="form-check-label">Checkbox input</span>
    </label>
    <label class="form-check">
      <input class="form-check-input" type="checkbox" disabled />
      <span class="form-check-label">Disabled checkbox input</span>
    </label>
    <label class="form-check">
      <input class="form-check-input" type="checkbox" checked />
      <span class="form-check-label">Checked checkbox input</span>
    </label>
  </div>
</div>
<div class="mb-3">
  <div class="form-label">Inline Checkboxes</div>
  <div>
    <label class="form-check form-check-inline">
      <input class="form-check-input" type="checkbox" />
      <span class="form-check-label">Option 1</span>
    </label>
    <label class="form-check form-check-inline">
      <input class="form-check-input" type="checkbox" disabled />
      <span class="form-check-label">Option 2</span>
    </label>
    <label class="form-check form-check-inline">
      <input class="form-check-input" type="checkbox" checked />
      <span class="form-check-label">Option 3</span>
    </label>
  </div>
</div>

Range input

Add a range slider to let users set a value or a range, such as a price range or a time frame.

The track and the thumb read --tblr-range-* custom properties on .form-range: --tblr-range-track-height, --tblr-range-track-bg, --tblr-range-thumb-width, --tblr-range-thumb-bg, --tblr-range-thumb-border and the rest of the track-* and thumb-* set.

<div class="mb-3">
  <label class="form-label">Range input</label>
  <input type="range" class="form-range mb-2" value="40" min="0" max="100" step="10" />
  <div class="form-range mb-2 text-green" id="range-color"></div>
</div>
<script is:inline="true">
  document.addEventListener("DOMContentLoaded", function() {
    window.noUiSlider && noUiSlider.create(document.getElementById("range-color"), {
      start: 40,
      connect: [true, false],
      step: 10,
      range: {
        min: 0,
        max: 100,
      },
    });
  });
</script>

Input group

Create a group of input controls and place add-ons on either side of an input.

The add-on reads --tblr-input-group-addon-* custom properties on .input-group (padding-y, padding-x, font-size, line-height, color, bg, border-color, border-radius). .input-group-sm and .input-group-lg only change these tokens and pass them on to the controls in the group.

@
.tabler.io
https://.tabler.io
<div class="mb-3">
  <label class="form-label">Input group</label>
  <div class="input-group mb-2">
    <span class="input-group-text">@</span>
    <input type="text" class="form-control" placeholder="username" autocomplete="off" />
  </div>
  <div class="input-group mb-2">
    <input type="text" class="form-control" placeholder="subdomain" autocomplete="off" />
    <span class="input-group-text">.tabler.io</span>
  </div>
  <div class="input-group">
    <span class="input-group-text">https://</span>
    <input type="text" class="form-control" placeholder="subdomain" autocomplete="off" />
    <span class="input-group-text">.tabler.io</span>
  </div>
</div>

Input with checkboxes or radios

Add a checkbox or radio button on either side of the input.

<div class="mb-3">
  <label class="form-label">Input with checkbox or radios</label>
  <div class="input-group mb-2">
    <span class="input-group-text">
      <input class="form-check-input m-0" type="checkbox" checked />
    </span>
    <input type="text" class="form-control" autocomplete="off" />
  </div>
  <div class="input-group">
    <input type="text" class="form-control" autocomplete="off" />
    <span class="input-group-text">
      <input class="form-check-input m-0" type="radio" checked />
    </span>
  </div>
</div>

Input with prepended or appended text

Add text before or after the value the user types.

.tabler.io
<div class="mb-3">
  <label class="form-label">Input with prepended text</label>
  <div class="input-group input-group-flat mb-2">
    <span class="input-group-text">
      <a href="https://tabler.io/users/">https://tabler.io/users/</a>
    </span>
    <input type="text" class="form-control ps-0" value="yourfancyusername" autocomplete="off" />
  </div>
  <div class="input-group input-group-flat">
    <input type="text" class="form-control text-end pe-0" value="yourfancydomain" autocomplete="off" />
    <span class="input-group-text">.tabler.io</span>
  </div>
</div>

Add a link inside the input, for example to show a password.

<div class="mb-3">
  <label class="form-label">Input with appended link</label>
  <div class="input-group input-group-flat">
    <input type="password" class="form-control" value="ultrastrongpassword" autocomplete="off" />
    <span class="input-group-text">
      <a href="#" class="input-group-link">Show password</a>
    </span>
  </div>
</div>

Input with appended kbd

Add a <kbd> inside the input to show a keyboard shortcut.

⌘K
<div class="mb-3">
  <label class="form-label">Input with appended kbd</label>
  <div class="input-group input-group-flat">
    <input type="password" class="form-control" value="ultrastrongpassword" autocomplete="off" />
    <span class="input-group-text">
      <kbd class="kbd-group">
        <kbd>⌘</kbd>
        <kbd>K</kbd>
      </kbd>
    </span>
  </div>
</div>

Add icon links at the end of the input for actions on its value.

<div class="mb-3">
  <label class="form-label">Input with appended icon links</label>
  <div class="input-group input-group-flat">
    <input type="text" class="form-control" autocomplete="off" />
    <span class="input-group-text">
      <a href="#" class="link-secondary" title="Clear search" data-bs-toggle="tooltip">
        <!-- Download SVG icon from http://tabler.io/icons/icon/x -->
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
          <path d="M18 6l-12 12" />
          <path d="M6 6l12 12" />
        </svg>
      </a>
      <a href="#" class="link-secondary ms-2" title="Search settings" data-bs-toggle="tooltip">
        <!-- Download SVG icon from http://tabler.io/icons/icon/adjustments -->
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
          <path d="M4 10a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
          <path d="M6 4v4" />
          <path d="M6 12v8" />
          <path d="M10 16a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
          <path d="M12 4v10" />
          <path d="M12 18v2" />
          <path d="M16 7a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
          <path d="M18 4v1" />
          <path d="M18 9v11" />
        </svg>
      </a>
      <a href="#" class="link-secondary ms-2 disabled" title="Add notification" data-bs-toggle="tooltip">
        <!-- Download SVG icon from http://tabler.io/icons/icon/bell -->
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="icon">
          <path d="M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6" />
          <path d="M9 17v1a3 3 0 0 0 6 0v-1" />
        </svg>
      </a>
    </span>
  </div>
</div>

Horizontal form

Put the label and the field in one row to place them side by side. The label takes col-form-label instead of form-label, which keeps it aligned with the field rather than sitting above it.

Add required to the label to append a red asterisk.

<div class="mb-3 row">
  <label class="col-3 col-form-label required" for="form-horizontal-email">Email address</label>
  <div class="col">
    <input type="email" id="form-horizontal-email" class="form-control" placeholder="[email protected]" />
  </div>
</div>
<div class="mb-3 row">
  <label class="col-3 col-form-label" for="form-horizontal-company">Company</label>
  <div class="col">
    <input type="text" id="form-horizontal-company" class="form-control" placeholder="Optional" />
  </div>
</div>

Wrap the buttons that close a form in form-footer. It only adds the top margin that separates them from the last field, so the spacing is the same in every form.

<div class="mb-3">
  <label class="form-label" for="form-footer-name">Name</label>
  <input type="text" id="form-footer-name" class="form-control" />
</div>
<div class="form-footer">
  <button type="submit" class="btn btn-primary w-100">Create account</button>
</div>

Accessibility

  • Every field needs a label with a for that matches the field id. A placeholder is not a label - it disappears as soon as the user types.
  • When the design has no room for a visible label, keep the label and hide it with visually-hidden rather than dropping it.
  • Tie help text and errors to the field with aria-describedby, so they are read together with it. See form helpers and validation states.
  • Mark a required field with the required attribute, not only with an asterisk in the label.
  • Group related checkboxes or radios in a fieldset with a legend. The legend is the only thing that names the group. See fieldsets.
  • Keep input types honest - email, tel, url and number change the on-screen keyboard on phones and let the browser validate for you.
  • Do not disable a field to make it read-only. disabled removes it from the tab order and from the submitted data; readonly keeps both.

CSS

Variables

The component uses local CSS variables for real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.

On .form-select, .form-control-plaintext, .form-control. Source: core/scss/bootstrap/forms/_form-control.scss.

--control-min-height: calc(var(--control-line-height) + var(--control-padding-y) * 2 + var(--control-border-width) * 2);
--control-padding-y: #{var-if-default($input-padding-y, $input-btn-padding-y, '--btn-input-padding-y')};
--control-padding-x: #{var-if-default($input-padding-x, $input-btn-padding-x, '--btn-input-padding-x')};
@include rfs(var-if-default($input-font-size, $input-btn-font-size, '--btn-input-font-size'), --control-font-size);
--control-line-height: #{var-if-default($input-line-height, $input-btn-line-height, '--btn-input-line-height')};
--control-fg: #{var-if-default($input-color, var(--body-color), '--btn-input-fg')};
--control-bg: #{var-if-default($input-bg, var(--bg-forms), '--btn-input-bg')};
--control-border-width: #{$input-border-width};
--control-border-color: #{$input-border-color};
--control-border-radius: #{var-if-default($input-border-radius, var(--border-radius), '--btn-input-border-radius')};
--control-box-shadow: #{$input-box-shadow};
--control-focus-fg: #{var-if-default($input-focus-color, $input-color, '--control-fg')};
--control-focus-bg: #{var-if-default($input-focus-bg, $input-bg, '--control-bg')};
--control-focus-border-color: #{$input-focus-border-color};
--control-placeholder-color: #{$input-placeholder-color};
--control-disabled-color: #{if(sass($input-disabled-color): $input-disabled-color; else: $form-secondary-color)};
--control-disabled-bg: #{$input-disabled-bg};
--control-disabled-border-color: #{if(sass($input-disabled-border-color): $input-disabled-border-color; else: var(--control-border-color))};
--control-action-bg: #{$form-file-button-bg};
--control-action-hover-bg: #{$form-file-button-hover-bg};
--control-transition: #{$input-transition};

Sass variables

Override these variables before importing Tabler to change the defaults.

Source: core/scss/_variables.scss.

$input-bg: var(--bg-forms);
$input-disabled-color: null;
$input-disabled-bg: var(--bg-forms-disabled);
$input-disabled-border-color: null;

$input-height: null;
$input-height-sm: null;
$input-height-lg: null;
$input-border-radius: var(--border-radius);
$input-border-radius-sm: var(--border-radius-sm);
$input-border-radius-lg: var(--border-radius-lg);
$input-padding-y: $input-btn-padding-y;
$input-padding-x: $input-btn-padding-x;
$input-font-family: $input-btn-font-family;
$input-font-size: $input-btn-font-size;
$input-font-weight: $font-weight-base;
$input-color: var(--body-color);
$input-box-shadow: var(--shadow-input);

$input-plaintext-color: var(--body-color);

$input-focus-bg: $input-bg;
$input-focus-border-color: var(--focus-ring-color);
$input-focus-color: var(--body-color);
$input-transition:
  border-color 0.15s ease-in-out,
  $focus-ring-transition,
  box-shadow 0.15s ease-in-out;

$input-border-width: $input-btn-border-width;
$input-line-height: $input-btn-line-height;
$input-line-height-lg: $input-btn-line-height-lg;
$input-line-height-sm: $input-btn-line-height-sm;
$input-height-border: calc(#{$input-border-width} * 2);

$input-padding-y-sm: $input-btn-padding-y-sm;
$input-padding-x-sm: $input-btn-padding-x-sm;
$input-font-size-sm: $input-btn-font-size-sm;

$input-padding-y-lg: $input-btn-padding-y-lg;
$input-padding-x-lg: $input-btn-padding-x-lg;
$input-font-size-lg: $input-btn-font-size-lg;

$input-height-inner: add($input-line-height, calc($input-padding-y * 2));
$input-height-inner-half: add($input-line-height, $input-padding-y);
$input-height-inner-quarter: add($input-line-height, calc($input-padding-y * 0.5));

$input-height: add($input-line-height, add(calc($input-padding-y * 2), $input-height-border, false));
$input-height-sm: add($input-line-height-sm, add(calc($input-padding-y-sm * 2), $input-height-border, false));
$input-height-lg: add($input-line-height-lg, add(calc($input-padding-y-lg * 2), $input-height-border, false));