carbon-components
Version:
Carbon Components is a component library for IBM Cloud
55 lines (48 loc) • 1.82 kB
HTML
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->
<div
class="bx--form-item bx--text-input-wrapper">
<label for="text-input-3" class="bx--label">Text Input label</label>
<input id="text-input-3" type="text" class="bx--text-input"
placeholder="Placeholder text">
</div>
<div
class="bx--form-item bx--text-input-wrapper">
<label for="text-input-4" class="bx--label">Text Input label</label>
<input data-invalid id="text-input-4" type="text"
class="bx--text-input" placeholder="Placeholder text">
<div class="bx--form-requirement">
Validation message here
</div>
</div>
<div
class="bx--form-item bx--text-input-wrapper">
<label for="text-input-5" class="bx--label">Text Input label</label>
<div class="bx--form__helper-text">
Optional helper text goes here
</div>
<input id="text-input-5" type="text" class="bx--text-input"
placeholder="Placeholder text">
</div>
<div
class="bx--form-item bx--text-input-wrapper"
style="width: 320px">
<label for="text-input-6" class="bx--label">Text Input label</label>
<div class="bx--form__helper-text">
Optional helper text here; if message is more than one line text should wrap (~100 character count maximum)
</div>
<input id="text-input-6" type="text" class="bx--text-input"
placeholder="Placeholder text">
</div>
<div
class="bx--form-item bx--text-input-wrapper">
<label for="text-input-7" class="bx--label bx--label--disabled">Text Input label</label>
<div class="bx--form__helper-text bx--form__helper-text--disabled">
Optional helper text goes here
</div>
<input id="text-input-7" type="text" class="bx--text-input"
placeholder="Placeholder text" disabled>
</div>