Open In App

Onsen UI CSS Components No border Checkbox in List Item

Improve
Improve
Like Article
Like
Save
Share
Report

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 Components No border Checkbox in List Item is used to create the checkbox without border in the list item using the below classes.

Onsen UI CSS Components No border Checkbox in List Item Classes:

  • checkbox–noborder: This class is used to create the no border checkbox in the list item.
  • checkbox–noborder__input: This class is used to create the no border checkbox input.
  • checkbox–noborder__checkmark: This class is used to create the no border checkbox checkmark.

Syntax:

<ul class="list">
  <li class="list-item list-item--tappable">
    <div class="list-item__left">
      <label class="checkbox checkbox--noborder">
        <input type="checkbox" 
               class="checkbox__input 
               checkbox--noborder__input">
        <div class="checkbox__checkmark 
             checkbox--noborder 
             checkbox--noborder__checkmark">
        </div>
      </label>
    </div>
  </li>
</ul>

Example 1: The following example demonstrates the Onsen UI CSS Components No border Checkbox in List Item.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h1 style="color: green;">
            GeeksforGeeks
        </h1>
        <h3>
            Onsen UI CSS Components No border 
            Checkbox in List Item
        </h3> <br> <br>
  
        <ul class="list">
            <li class="list-item list-item--tappable">
                <div class="list-item__left">
                    <label class="checkbox checkbox--noborder">
                        <input id="abc" 
                               type="checkbox" 
                               class="checkbox__input 
                               checkbox--noborder__input">
                        <div class="checkbox__checkmark 
                             checkbox--noborder 
                             checkbox--noborder__checkmark">
                        </div>
                    </label>
                </div>
                <label for="abc" 
                       class="list-item__center">
                    GeeksforGeeks
                </label>
            </li>
        </ul>
    </center>
</body>
</html>


Output:

 

Example 2: The following example demonstrates the Onsen UI CSS Components No border Checkbox in List Item.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h1 style="color: green;">
            GeeksforGeeks
        </h1>
        <h3>
            Onsen UI CSS Components No border 
            Checkbox in List Item
        </h3>
  
        <ul class="list">
            <li class="list-item list-item--tappable">
                <div class="list-item__left">
                    <label class="checkbox checkbox--noborder">
                        <input id="abc1" 
                               type="checkbox" 
                               class="checkbox__input 
                               checkbox--noborder__input">
                        <div class="checkbox__checkmark 
                             checkbox--noborder 
                             checkbox--noborder__checkmark">
                          </div>
                    </label>
                </div>
                <label for="abc1" 
                       class="list-item__center">
                    Java
                </label>
            </li>
  
            <li class="list-item list-item--tappable">
                <div class="list-item__left">
                    <label class="checkbox checkbox--noborder">
                        <input id="abc2" 
                               type="checkbox" 
                               class="checkbox__input 
                               checkbox--noborder__input"
                               checked>
                        <div class="checkbox__checkmark 
                             checkbox--noborder 
                             checkbox--noborder__checkmark">
                          </div>
                    </label>
                </div>
                <label for="abc2" 
                       class="list-item__center">
                    Python
                </label>
            </li>
  
            <li class="list-item list-item--tappable">
                <div class="list-item__left">
                    <label class="checkbox checkbox--noborder">
                        <input id="abc3" 
                               type="checkbox" 
                               class="checkbox__input 
                               checkbox--noborder__input"
                               checked disabled>
                        <div class="checkbox__checkmark 
                             checkbox--noborder 
                             checkbox--noborder__checkmark">
                          </div>
                    </label>
                </div>
                <label for="abc3" 
                       class="list-item__center">
                    Disabled
                </label>
            </li>
        </ul>
    </center>
</body>
</html>


Output:

 

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



Last Updated : 30 Jun, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads