The Wayback Machine - https://web.archive.org/web/20240930171121/https://www.geeksforgeeks.org/onsen-ui/
Open In App

Onsen UI

Last Updated : 10 Jul, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Onsen UI 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 is a cutting-edge and practical HTML5 framework that is available for use for free.

Onsen-UI Tutorial

It simplifies UI development so that app developers may concentrate on the functionality of the software. Because it provides a huge selection of premium UI elements designed especially for mobile apps and packed with attributes that follow native iOS and Android design standards, Onsen UI is an excellent resource. Onsen UI is made to work with AngularJS, but it can also be used with jQuery or any other framework with ease. The Onsen UI JavaScript framework was created using PhoneGap and Cordova.

Onsen UI can also be used along several Javascript frameworks such as ReactJS, Angular, and jQuery. Onsen UI is a free open-source HTML5 framework for creating innovative and usable user interfaces (UI). It also simplifies user interface design, letting app developers concentrate on the program’s functionality. Onsen UI was created by Monaca Inc/ Asial Corporation and was first released in 2013.

 

Reasons to learn Onsen-UI:

  • It is a powerful tool to build complex mobile apps than also it is easy to learn and work with. Allows us to work with the technologies we already know i.e. HTML, CSS, and JavaScript. It has a variety of UI components like toolbars, forms, side menus, lists, etc. It has optimized all the animations provided in it and tuned them to perform well on a wide range of devices. Supported Monaca which is a cross-platform for building hybrid app developments using PhoneGap or Cordova. It has support for Monaca.
ONSEN UI

ONSEN UI

Features of Onsen-UI:

  • It is an open-source HTML5 hybrid app framework for PhoneGap and Cordova.
  • It has a responsive layout.
  • It has mobile-optimized HTML5, CSS, and Javascript with web components.
  • It is full of ready-to-use features that adhere to native design standards for iOS and Android
  • It has a sizable collection of high-quality UI elements created especially for mobile apps
  • It has a flat design.

Installation of Onsen-UI: There are 3 methods to add Onsen-UI is our project.

Method 1: We can simply download Onsen-UI from this link and use it in our project.

Method 2 (Using Onsen-UI CDN Link): We can simply add Onsen-UI to our projects using the following CDN link in our file.

<link rel=”stylesheet” href=”https://unpkg.com/onsenui/css/onsenui.css”>
<link rel=”stylesheet” href=”https://unpkg.com/onsenui/css/onsen-css-components.min.css”>
<script src=”https://unpkg.com/onsenui/js/onsenui.min.js”></script>

Method 3 (Using npm): There is another way of adding Onsen-UI to our project using npm by giving the following command.

npm install onsenui --save

Example: In this example, we will create a button using Onsen-UI and display an alert on clicking it using Onsen-UI.

HTML




<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
      </script>
</head>
  
<body style="text-align:center">
    <h1 style="color:green">
        Geeks for Geeks
    </h1>
    <h3>
        Onsen-UI
    </h3>
    <button class="button" onclick="alert('Hello World!')">
          Click Me
      </button>
</body>
</html>


Output:

Output

Output

Learn more about Onsen-UI:



Similar Reads

Onsen UI CSS Component Material Tabbar (Icon and Label)
Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components compatible with mobile and desktop. Onsen UI CSS Components are pre-built CSS components that may be used to create adaptive and attractive user interface layouts rapidly. Onsen UI CSS Component Material Tabbar (Icon and
3 min read
ReactJS Onsen UI AlertDialogButton Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. AlertDialogButton Component denote each button of the alert dialog. We can use the following approach in ReactJS to use the Onsen-UI AlertDialogButton Component. AlertDialo
2 min read
ReactJS Onsen UI Input Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Input Component allows the user to create a basic widget for getting the user input is a text field. We can use the following approach in ReactJS to use the Onsen-UI Input
2 min read
Onsen UI Toast CSS Components
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. Toasts are components used to notify the users and take immediate action on them. The toast contains a message and action buttons. Material toasts have sharp corner boxes
2 min read
ReactJS Onsen UI ListItem Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. ListItem components represent each item in the list. It is used to define the list item. We can use the following approach in ReactJS to use the Onsen-UI ListItem Component
3 min read
ReactJS Onsen UI ListHeader Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. ListHeader components represent the Header element for list items. We can use the following approach in ReactJS to use the Onsen-UI ListHeader Component. ListHeader Props:
2 min read
ReactJS Onsen UI List Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. List components allow the user to display a list. We can use the following approach in ReactJS to use the Onsen-UI List Component. List Props: modifier: It is used to speci
2 min read
Onsen UI Toolbar CSS Components
Onsen UI is an open-source, free tool for building distinctive and functional UIs. Additionally, it speeds up UI creation, letting app developers concentrate on the functionality of the software. Onsen UI is a sizable collection of strong user interface elements created especially for mobile apps. It is brimming with features that are ready to use
4 min read
Onsen UI Dialog CSS Component Material Alert Dialog
Onsen UI is an HTML5 framework that allows you to design distinctive and usable user interfaces for free (UI). It also makes UI creation easier, enabling programmers to focus on the core of the product. Onsen UI is a complex set of user interface components designed specifically for mobile apps, with ready-to-use features that follow native iOS and
4 min read
ReactJS Onsen UI SpeedDialItem Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. SpeedDialItem Component allows the user to define the items which are then passed to the speed dial component. We can use the following approach in ReactJS to use the Onsen
2 min read
Onsen UI CSS Component No Shadow Toolbar
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 will see the Onsen UI CSS Component No Shadow Toolbar. The toolbar is a horizontal bar with some toolbar items and icons. Onsen UI CSS Component No Sha
2 min read
ReactJS Onsen UI Card Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Card components allow the user to display content. We can use the following approach in ReactJS to use the Onsen-UI Card Component. Card Props: modifier: It is used to spec
1 min read
Onsen UI CSS Component Basic Radio Button
Onsen UI is an innovative and practical HTML5 framework that is available for free (UI). Additionally, it makes UI creation simpler so that app developers may concentrate on the functionality of the software. With a large selection of high-quality UI elements made specifically for mobile apps and packed with functionalities that follow native iOS a
3 min read
Onsen UI CSS Component Material List with Thumbnails
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. Thumbnails are reduced-size images that can be used with the list item. Onsen UI CSS
2 min read
ReactJS Onsen UI Select Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Select Component allows the user to select an item from a list of options. We can use the following approach in ReactJS to use the Onsen-UI Select Component. Select Props:
2 min read
Onsen UI CSS Component Segment Button Bar
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. The segment is used to create a group of related content. Onsen UI CSS Component Segment Button Bar is used to create the segment with some buttons. We can create the Segm
2 min read
ReactJS Onsen UI SpeedDial Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. SpeedDial Component allows the user to perform an action from the quick action button available. We can use the following approach in ReactJS to use the Onsen-UI SpeedDial
2 min read
ReactJS Onsen UI Segment Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Segment Component allows the user to toggle between a different number of options in a row. We can use the following approach in ReactJS to use the Onsen-UI Segment Compone
2 min read
ReactJS Onsen UI Button Component
ReactJS Onsen-UI is a popular front-end library with a set of React components designed to develop HTML5 hybrid and mobile web apps beautifully and efficiently. Button Component allows the user to take actions, and make choices, with a single tap. We can use the following approach in ReactJS to use the Onsen-UI Button Component. Button Props: modif
2 min read
ReactJS Onsen UI Col Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Col Component provides a way to represent a Col in the grid system, and it is used to display data in the form of a column. We can use the following approach in ReactJS to
2 min read
ReactJS Onsen UI ProgressCircular Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. ProgressCircular components are used to display a circular progress indicator. We can use the following approach in ReactJS to use the Onsen-UI ProgressCircular Component.
2 min read
ReactJS Onsen UI Range Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Range Component allows the user to provide a range slider. We can use the following approach in ReactJS to use the Onsen-UI Range Component. Range Props: modifier: It is us
2 min read
ReactJS Onsen UI Radio Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Radio Component allows the user to select one option from a set. We can use the following approach in ReactJS to use the Onsen-UI Radio Component. Radio Props: modifier: It
2 min read
ReactJS Onsen UI Fab Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Fab Component allows the user to provide a Floating action button which is a circular button. We can use the following approach in ReactJS to use the Onsen-UI Fab Component
2 min read
ReactJS Onsen UI Checkbox Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Checkbox component allows the user to make a binary choice from the given options. We can use the following approach in ReactJS to use the Onsen-UI Checkbox Component. Chec
2 min read
ReactJS Onsen UI Modal Component
ReactJS Onsen-UI is a popular front-end library with a set of React components designed to develop HTML5 hybrid and mobile web apps in a beautiful and efficient way. Modal Component provides a solid foundation for creating dialogs, lightboxes, popovers, etc. We can use the following approach in ReactJS to use the Onsen-UI Modal Component. Modal Pro
3 min read
ReactJS Onsen UI Dialog Component
ReactJS Onsen-UI is a popular front-end library with a set of React components designed to develop HTML5 hybrid and mobile web apps beautifully and efficiently. Dialog Component allows the user to show content on top of an overlay that requires user interaction. We can use the following approach in ReactJS to use the Onsen-UI Dialog Component. Dial
3 min read
ReactJS Onsen UI Toolbar Component
ReactJS Onsen-UI is a popular front-end library with a set of React components that are designed to developing HTML5 hybrid and mobile web apps in a beautiful and efficient way. Toolbar components allow the users to show them a toolbar that can be used with navigation. We can use the following approach in ReactJS to use the Onsen-UI Toolbar Compone
2 min read
ReactJS Onsen UI SearchInput Component
ReactJS Onsen-UI is a popular front-end library with a set of React components designed to develop HTML5 hybrid and mobile web apps beautifully and efficiently. SearchInput Component allows the user to provide a search input text field. We can use the following approach in ReactJS to use the Onsen-UI SearchInput Component. SearchInput Props: modifi
2 min read
ReactJS Onsen UI Row Component
ReactJS Onsen-UI is a popular front-end library with a set of React components designed to develop HTML5 hybrid and mobile web apps beautifully and efficiently. Row Component provides a way to represent a row in the grid system, and it is used to display data in the form of rows. We can use the following approach in ReactJS to use the Onsen-UI Row
2 min read
Article Tags :