ꯐ꯭ꯂꯣꯇꯤꯡ ꯂꯦꯕꯦꯂꯁꯤꯡ꯫
ꯅꯍꯥꯛꯀꯤ ꯏꯅꯄꯨꯠ ꯐꯤꯜꯗꯁꯤꯡꯒꯤ ꯃꯊꯛꯇꯥ ꯆꯦꯅꯕꯥ ꯐꯖꯅꯥ ꯏꯆꯝ ꯆꯝꯕꯥ ꯐꯣꯔꯝ ꯂꯦꯕꯦꯂꯁꯤꯡ ꯁꯦꯝꯃꯨ꯫
ꯈꯨꯗꯝ
ꯕꯨꯇꯁ꯭ꯠꯔꯥꯄꯀꯤ ꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯐꯣꯔꯝ ꯐꯤꯜꯗꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯐ꯭ꯂꯣꯇꯤꯡ ꯂꯦꯕꯦꯂꯁꯤꯡ ꯏꯅꯦꯕꯜ ꯇꯧꯅꯕꯥ <input class="form-control">
ꯑꯃꯁꯨꯡ <label>
ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯒꯤ ꯄꯦꯌꯥꯔ ꯑꯃꯥ ꯔꯦꯞ ꯇꯧ꯫ ꯑꯩꯈꯣꯌꯒꯤ ꯁꯤ.ꯑꯦꯁ.ꯑꯦꯁ.-ꯈꯛꯇꯒꯤ ꯑꯣꯏꯕꯥ ꯐ꯭ꯂꯣꯇꯤꯡ ꯂꯦꯕꯦꯂꯁꯤꯡꯒꯤ ꯃꯦꯊꯗ ꯑꯁꯤꯅꯥ ꯄ꯭ꯁꯨꯗꯣ-ꯏꯂꯤꯃꯦꯟꯇ ꯑꯁꯤ ꯁꯤꯖꯤꯟꯅꯕꯅꯥ ꯃꯔꯝ ꯑꯣꯏꯗꯨꯅꯥ ꯈꯨꯗꯤꯡꯃꯛꯇꯥ .form-floating
ꯑꯦ ꯃꯊꯧ ꯇꯥꯏ꯫ ꯃꯁꯤꯗꯁꯨ ꯅꯠꯇꯅꯥ ꯈꯉꯖꯤꯅꯕꯤꯌꯨ ꯃꯗꯨꯗꯤ ꯑꯩꯈꯣꯌꯅꯥ ꯁꯤꯕꯂꯤꯡ ꯁꯦꯂꯦꯛꯇꯔ ꯑꯃꯥ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, ) ꯁꯤꯖꯤꯟꯅꯕꯥ ꯌꯥꯅꯕꯥ ꯑꯍꯥꯅꯕꯥ ꯑꯣꯏꯅꯥ ꯂꯥꯀꯄꯥ ꯃꯊꯧ ꯇꯥꯏ꯫placeholder
<input>
:placeholder-shown
<input>
~
<div class="form-floating mb-3">
<input type="email" class="form-control" id="floatingInput" placeholder="[email protected]">
<label for="floatingInput">Email address</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" id="floatingPassword" placeholder="Password">
<label for="floatingPassword">Password</label>
</div>
value
ꯍꯥꯟꯅꯅꯥ ꯁꯦꯃꯗꯣꯀꯄꯥ ꯑꯃꯥ ꯂꯩꯕꯥ ꯃꯇꯃꯗꯥ , <label>
sꯅꯥ ꯃꯈꯣꯌꯒꯤ ꯐ꯭ꯂꯣꯠ ꯇꯧꯔꯕꯥ ꯄꯣꯖꯤꯁꯟ ꯑꯗꯨꯗꯥ ꯑꯣꯇꯣꯃꯦꯇꯤꯛ ꯑꯣꯏꯅꯥ ꯑꯦꯗꯖꯁ꯭ꯠ ꯇꯧꯒꯅꯤ꯫
<form class="form-floating">
<input type="email" class="form-control" id="floatingInputValue" placeholder="[email protected]" value="[email protected]">
<label for="floatingInputValue">Input with value</label>
</form>
ꯐꯣꯔꯝ ꯚꯦꯂꯤꯗꯦꯁꯟ ꯁ꯭ꯇꯥꯏꯂꯁꯤꯡꯁꯨ ꯊꯥꯖꯕꯥ ꯌꯥꯕꯥ ꯃꯑꯣꯡꯗꯥ ꯊꯕꯛ ꯇꯧꯏ꯫
<form class="form-floating">
<input type="email" class="form-control is-invalid" id="floatingInputInvalid" placeholder="[email protected]" value="[email protected]">
<label for="floatingInputInvalid">Invalid input</label>
</form>
ꯇꯦꯛꯁꯇꯥꯏꯜ ꯑꯦꯔꯤꯌꯥꯁꯤꯡ꯫
ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ, <textarea>
s with .form-control
ꯑꯁꯤ sꯒꯥ ꯃꯥꯟꯅꯕꯥ ꯑꯋꯥꯡꯕꯥ <input>
ꯑꯣꯏꯒꯅꯤ꯫
<div class="form-floating">
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea>
<label for="floatingTextarea">Comments</label>
</div>
ꯅꯍꯥꯛꯀꯤ <textarea>
, ꯀꯁ꯭ꯇꯝ ꯍꯥꯏꯠ ꯑꯃꯥ ꯁꯦꯠ ꯇꯧꯅꯕꯥ, rows
ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯑꯗꯨ ꯁꯤꯖꯤꯟꯅꯒꯅꯨ. ꯃꯗꯨꯒꯤ ꯃꯍꯨꯠꯇꯥ, ꯃꯌꯦꯛ ꯁꯦꯡꯕꯥ ꯑꯃꯥ ꯁꯦꯠ ꯇꯧ height
(ꯏꯅꯂꯥꯏꯟ ꯅꯠꯠꯔꯒꯥ ꯀꯁ꯭ꯇꯝ ꯁꯤ.ꯑꯦꯁ.ꯑꯦꯁ.ꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ)꯫
<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>
ꯈꯅꯒꯠꯂꯤ꯫
ꯅꯠꯇꯅꯥ .form-control
, ꯐ꯭ꯂꯣꯇꯤꯡ ꯂꯦꯕꯦꯂꯁꯤꯡ ꯑꯁꯤ .form-select
ꯑꯦꯁ. ꯃꯈꯣꯌꯅꯥ ꯆꯞ ꯃꯥꯟꯅꯕꯥ ꯃꯑꯣꯡꯗꯥ ꯊꯕꯛ ꯇꯧꯏ, ꯑꯗꯨꯕꯨ ꯑꯦꯁ.ꯒꯥ ꯃꯥꯟꯅꯗꯅꯥ <input>
, ꯃꯈꯣꯌꯅꯥ ꯃꯇꯝ ꯄꯨꯝꯅꯃꯛꯇꯥ <label>
ꯃꯁꯤꯒꯤ ꯐ꯭ꯂꯣꯇꯦꯗ ꯁ꯭ꯇꯦꯠꯇꯥ ꯎꯠꯀꯅꯤ꯫ ꯂꯣꯌꯅꯅꯥ ꯈꯅꯒꯠꯂꯤ size
ꯑꯃꯁꯨꯡ multiple
ꯁꯄꯣꯔꯠ ꯇꯧꯗꯦ꯫
<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 class="row g-2">
<div class="col-md">
<div class="form-floating">
<input type="email" class="form-control" id="floatingInputGrid" placeholder="[email protected]" value="[email protected]">
<label for="floatingInputGrid">Email address</label>
</div>
</div>
<div class="col-md">
<div class="form-floating">
<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>
</div>
ꯁꯥꯁꯁ ꯇꯧꯕꯥ꯫
ꯚꯦꯔꯤꯑꯦꯕꯂꯁꯤꯡ꯫
$form-floating-height: add(3.5rem, $input-height-border);
$form-floating-line-height: 1.25;
$form-floating-padding-x: $input-padding-x;
$form-floating-padding-y: 1rem;
$form-floating-input-padding-t: 1.625rem;
$form-floating-input-padding-b: .625rem;
$form-floating-label-opacity: .65;
$form-floating-label-transform: scale(.85) translateY(-.5rem) translateX(.15rem);
$form-floating-transition: opacity .1s ease-in-out, transform .1s ease-in-out;