Open In App

Onsen UI CSS Component No border Checkbox

Last Updated : 22 Jun, 2022
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.

Onsen UI CSS Component No border Checkbox is used to create the checkbox without the border. To create the No border checkbox, we will use the below Checkbox classes.

Onsen UI CSS Component No border Checkbox Classes:

  • checkbox–noborder: This class is used to create the no border checkbox.
  • 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:

<label class="checkbox 
              checkbox--noborder">
  <input type="checkbox" 
           class="checkbox__input 
           checkbox--noborder__input">
  <div class="checkbox__checkmark 
         checkbox--noborder__checkmark">
  </div>
  ...
</label>

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

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>
        <h2 style="color: green;">
            GeeksforGeeks
        </h2>
        <strong>
            Onsen UI CSS Component No border Checkbox
        </strong> <br> <br>
  
        <label class="checkbox checkbox--noborder">
            <input type="checkbox" 
                   class="checkbox__input 
                   checkbox--noborder__input">
            <div class="checkbox__checkmark 
                 checkbox--noborder__checkmark">
            </div>
            Checkbox
        </label>
    </center>
</body>
  
</html>


Output:

 

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

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>
        <h2 style="color: green;">
            GeeksforGeeks
        </h2>
        <strong>
            Onsen UI CSS Component No border Checkbox
        </strong> <br> <br>
  
        <label class="checkbox checkbox--noborder">
            <input type="checkbox" 
                   class="checkbox__input 
                   checkbox--noborder__input">
            <div class="checkbox__checkmark 
                 checkbox--noborder__checkmark">
            </div>
            Java
        </label>
  
        <label class="checkbox checkbox--noborder">
            <input type="checkbox" 
                   class="checkbox__input 
                          checkbox--noborder__input" 
                   checked disabled>
            <div class="checkbox__checkmark 
                 checkbox--noborder__checkmark">
            </div>
            Python
        </label>
    </center>
</body>
  
</html>


Output:

 

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



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads