![]() |
VOOZH | about |
In this article, we'll be seeing Bulma form addons. Bulma Form provides the addons controls which can be used together with the field container. Bulma only provides 3 addons to be added i.e, inputs, buttons, and dropdown with the field container of form. Below are the classes used for attaching form addons.
Bulma Form addons class:
Syntax:
Simple addons
<div class="field has-addons"> <div class="control"> <input class="input" type="text" placeholder="Enter your details"> </div> <div class="control"> <a class="button is-primary"> Search </a> </div> </div>
Full width input field or dropdown
<div class="field has-addons"> <div class="control"> .... </div> <div class="control is-expanded"> <input class="input " type="text"> </div> </div>
Full width dropdown
<div class="field has-addons"> <div class="control"> .... </div> <div class="control is-expanded"> <div class="select is-fullwidth"> <select> <option>java</option> .... </select> </div> </div> </div>
Example: Below example demonstrates all addons classes.
Output:
Reference: https://bulma.io/documentation/form/general/#form-addons