![]() |
VOOZH | about |
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.
The pre-built CSS components from Onsen UI make it simple to quickly construct flexible and attractive user interface layouts. For mobile developers, Onsen CSS Components is a web-based Topcoat theme roller that makes developing attractive UIs simpler. Onsen UI Radio Button CSS Components help us to create a radio button which is also utilized in a lot of applications especially form groups.
Onsen UI Radio Button CSS Components:
Syntax:
<label class="radio-button ...."> <input type="radio" class="radio-button__input" name="r" checked="checked"> <div class="radio-button__checkmark"></div> ... </label>
Example 1: The code below demonstrates how to implement Onsen UI CSS Component Basic Radio Button.
Output:
Example 2: The following example demonstrates the Onsen UI CSS Component Material Radio Button.
Output:
Reference: https://onsen.io/v2/api/css.html#radio-button-category