Open In App

Onsen UI CSS Component Basic Action Sheet

Last Updated : 17 Jun, 2022
Comments
Improve
Suggest changes
Like Article
Like
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.

In this article, we are going to implement the Onsen UI CSS Component Basic Action Sheet. Action sheets are used for different actions as a popup. The action sheet has a background mask to make emphasize the action sheet. The basic action sheet has a dark but transparent background.

Onsen UI CSS Component Basic Action Sheet classes:

  • action-sheet: The container with this class is the action sheet.
  • action-sheet-mask: The class is used to blur and make the background dark.
  • action-sheet-button: This class is used to create buttons for the action sheet.

Syntax: Create a basis action sheet as follows:

<div class="action-sheet-mask"></div>
<div class="action-sheet">
  <button class="action-sheet-button">
    <i class="ion-ios-link"></i>
    Submit
  </button>
</div>

Example 1: In the following example, we have a basic action sheet with buttons.

Output:

 

Example 2: In the following example, we have a basic action sheet that can be opened and closed with the help of buttons.

Output:

 

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


Next Article

Similar Reads