VOOZH about

URL: https://www.geeksforgeeks.org/css/onsen-ui-css-component-material-checkbox/

⇱ Onsen UI CSS Component Material Checkbox - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Onsen UI CSS Component Material Checkbox

Last Updated : 23 Jul, 2025

Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop.

Checkboxes are used for instances where a user may wish to select multiple options, such as in the instance of a “check all that apply” question, in forms. Onsen UI CSS Component Material Checkbox is used to create the material checkbox in Onsen UI using the below classes.

Onsen UI CSS Component Material Checkbox Classes:

  • checkbox--material: This class is used to create the material checkbox.
  • checkbox__input: This class is used to create the checkbox input.
  • checkbox--material__input: This class is used to create the material checkbox input.
  • checkbox__checkmark: This class is used to create the checkbox checkmark.
  • checkbox--material__checkmark: This class is used to create the material type checkbox checkmark.

Syntax:

<label class="checkbox checkbox--material">
 <input type="checkbox" class="checkbox__input 
 checkbox--material__input">
 <div class="checkbox__checkmark 
 checkbox--material__checkmark">
 </div>
 ...
</label>

Example 1: The following example demonstrates the Onsen UI CSS Component Material Checkbox.

Output:

👁 Image
 

Example 2: The following example demonstrates the Onsen UI CSS Component Material Checkbox.

Output:

👁 Image
 

Reference: https://onsen.io/v2/api/css.html#checkbox-category

Comment