ReactJS Onsen UI Checkbox Component Last Updated : 07 Feb, 2023 Comments Improve Suggest changes Like Article Like Report 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. Checkbox Props: modifier: It is used for the appearance of the checkbox.disabled: It is used to specify whether the checkbox is disabled or not.onChange: It is a callback function that is triggered when the checkbox state changes. value: It is used to denote the value of the checkbox. checked: It is used to control the state of the checkbox (controlled). checked: It is used to define the state of the radio button at first render for uncontrolled inputs.inputId: It is used to specify the “id” attribute of the inner <input> element. Preset Modifiers: material: It is used to show the material design checkbox.noborder: It is used for the iOS borderless checkbox. Creating React Application And Installing Module: Step 1: Create a React application using the following command: npx create-react-app foldernameStep 2: After creating your project folder i.e. foldername, move to it using the following command: cd foldernameStep 3: After creating the ReactJS application, Install the required module using the following command: npm install onsenui react-onsenui Project Structure: It will look like the following. Project StructureExample: Now write down the following code in the App.js file. Here, App is our default component where we have written our code. JavaScript import React from 'react'; import 'onsenui/css/onsen-css-components.css'; import { Checkbox } from 'react-onsenui'; export default function App() { return ( <div style={{ display: 'block', width: 500, paddingLeft: 30 }}> <h6>ReactJS Onsen-UI Checkbox Component</h6> <Checkbox modifier='material' /> Do you agree to terms and conditions ? </div> ); } Step to Run Application: Run the application using the following command from the root directory of the project: npm startOutput: Now open your browser and go to http://localhost:3000/, you will see the following output: Reference: https://onsen.io/v2/api/react/Checkbox.html Comment More infoAdvertise with us Next Article ReactJS Onsen UI Checkbox Component gouravhammad Follow Improve Article Tags : JavaScript Web Technologies ReactJS Onsen-UI Similar Reads 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 2 min read ReactJS Onsen UI BackButton 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. BackButton components allow the user to show the back button in your application. We can use the following approach in Rea 2 min read ReactJS UI Ant Design Checkbox Component Ant Design Library has this component pre-built, and it is very easy to integrate as well. The 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 Ant Design Checkbox Component. Checkbox Methods: blur(): This meth 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 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 C 2 min read ReactJS Evergreen Checkbox Component React Evergreen is a popular front-end library with a set of React components for building beautiful products as this library is flexible, sensible defaults, and User friendly. Checkbox component allows the user to make a binary choice from the given options. We can use the following approach in Rea 2 min read ReactJS Onsen UI ActionSheet 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. ActionSheet Component allows the user to display a list of options and asking the user to make a decision. We can use the 2 min read Onsen UI Checkbox 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. Checkboxes are used for instances where a user may wish to select multiple options, such as in the instance of a âcheck a 2 min read ReactJS Onsen UI ActionSheetButton 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. ActionSheetButton Component is used to represent each button of the action sheet. We can use the following approach in Rea 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 app 2 min read Like