Open In App

Onsen UI CSS Component Textarea Transparent

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 Textarea Transparent is used to create the transparent text area with a given number of rows. To create the transparent textarea, we will use textarea–transparent modifier class.

Onsen UI CSS Component Textarea Transparent Class:

  • textarea–transparent: This class is used to create the transparent textarea.

Syntax:

<textarea class="textarea textarea--transparent" 
          rows="..." placeholder="...">
</textarea>

Example 1: The following example demonstrates the Onsen UI CSS Component Textarea Transparent.

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 Textarea Transparent
        </strong> <br> <br>
  
        <textarea class="textarea textarea--transparent" 
                  placeholder="Transparent textarea"
                  rows="5" ></textarea>
    </center>
</body>
  
</html>


Output:

 

Example 2: The following example demonstrates the Onsen UI CSS Component Textarea Transparent.

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 Textarea Transparent
        </strong> <br> <br>
  
        <textarea class="textarea textarea--transparent" 
                  placeholder="Textarea 1"
                  rows="4" ></textarea
        <br>
        <textarea class="textarea textarea--transparent" 
                  placeholder="Textarea 2"
                  rows="2" ></textarea>
    </center>
</body>
  
</html>


Output:

 

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



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