# Forms
Kong supplies default form styling in the built styles.css
which can be used to style inputs using the style guide in places where a Kongponent can't be used. By default, all form styles are included in the stylesheet.
Here is an example of html elements being styled using the including css.
# Text Inputs
Note: Add the
input-error
class to add custom error styling
<input class="k-input" placeholder="placeholder" />
<input class="k-input" type="password" value="123" />
<input class="k-input" type="number" value="1"/>
<input class="k-input" type="email" value="john.doe@konghq.com"/>
<input class="k-input" disabled value="disabled"/>
<input class="k-input" readonly value="readonly"/>
<input class="k-input" type="search" value="search"/>
<input class="k-input input-error" type="email" value="error"/>
<select class="k-input">
<option value="option1">Option 1</option>
<option value="option2">Option 2</option>
<option value="option3">Option 3</option>
</select>
# Checkboxes & Radios
<input class="k-input" type="checkbox" />
<input class="k-input" type="checkbox" disabled />
<input class="k-input" type="radio" name="radio" value="on" checked />
<input class="k-input" type="radio" name="radio" value="off" />
<input class="k-input" type="radio" name="radio" value="off" disabled />
# Labels & Help text
By default labels inherit body styles however you can add the .k-input-label
class for kong styles
Additionally you can add block level hint text by using the .help
class.
This is some helpful hint text!
<div>
<input id="checkbox" class="k-input" type="checkbox" />
<label for="checkbox">Label Text</label>
</div>
<div>
<input id="radio" class="k-input" type="radio" name="radio" value="off" />
<label for="radio">Label Text</label>
</div>
<div>
<label for="text" class="k-input-label">Label Text</label>
<input id="text" class="k-input" type="text" />
<p class="help">This is some helpful hint text!</p>
</div>