Onsen UI CSS Component Textarea in List Item
Last Updated :
03 Jul, 2022
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.
Lists are used to store data or information on web pages in ordered or unordered form. Onsen UI CSS Component Textarea in List Item is used to create the textarea in the list item using the below classes.
Onsen UI CSS Component Textarea in List Item Classes:
- textarea: This class is used to create the textarea.
- textarea–transparent: This class is used to create the transparent textarea.
Syntax:
<ul class="list">
<li class="list-item">
<div class="list-item__center">
<textarea class="textarea
textarea--transparent"
placeholder="....">
</textarea>
</div>
</li>
</ul>
Example 1: The following example demonstrates the Onsen UI CSS Component Textarea in List Item.
HTML
<!DOCTYPE html>
< html >
< head >
< link rel = "stylesheet" href =
< link rel = "stylesheet" href =
< script src =
</ script >
</ head >
< body >
< center >
< h1 style = "color: green;" >
GeeksforGeeks
</ h1 >
< h3 >
Onsen UI CSS Component Textarea in List Item
</ h3 >
< ul class = "list" >
< li class = "list-item" >
< div class = "list-item__center" >
< textarea class="textarea
textarea--transparent"
placeholder = "Type here.." ></ textarea >
</ div >
</ li >
</ ul >
</ center >
</ body >
</ html >
|
Output:
Example 2: The following example demonstrates the Onsen UI CSS Component Textarea in List Item by specifying the disabled textarea.
HTML
<!DOCTYPE html>
< html >
< head >
< link rel = "stylesheet" href =
< link rel = "stylesheet" href =
< script src =
</ script >
</ head >
< body >
< center >
< h1 style = "color: green;" >
GeeksforGeeks
</ h1 >
< h3 >
Onsen UI CSS Component Textarea in List Item
</ h3 >
< ul class = "list" >
< li class = "list-item" >
< div class = "list-item__center" >
< textarea class="textarea
textarea--transparent"
placeholder = "Type here.." >
</ textarea >
</ div >
</ li >
< li class = "list-item" >
< div class = "list-item__center" >
< textarea class="textarea
textarea--transparent"
placeholder = "Disabled textarea"
disabled>
</ textarea >
</ div >
</ li >
</ ul >
</ center >
</ body >
</ html >
|
Output:
Reference: https://onsen.io/v2/api/css.html#list-category
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...