ReactJS Evergreen Checkbox Component Last Updated : 05 Jun, 2021 Comments Improve Suggest changes Like Article Like Report 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 ReactJS to use the Evergreen Checkbox Component. Checkbox Props: id: It is used to denote the general id attribute of the checkbox.name: It is used to denote the name attribute of the checkbox.label: It is used to denote the label of the checkbox.value: It is used to the value attribute of the checkbox.checked: It indicates whether the checkbox is selected or not.indeterminate: It is used to denote the indeterminate checked state of the checkbox.onChange: It is the callback function that is triggered when the state changes.disabled: It is used to disable the checkbox when this is set to true.isInvalid: The aria-invalid attribute is true when this is set to true.appearance: It is used to denote the appearance of the checkbox.Creating React Application And Installing Module: Step 1: Create a React application using the following command: npx create-react-app foldername Step 2: After creating your project folder i.e. foldername, move to it using the following command: cd foldername Step 3: After creating the ReactJS application, Install the required module using the following command: npm install evergreen-ui 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. App.js import React from 'react' import { Checkbox } from 'evergreen-ui' export default function App() { return ( <div style={{ display: 'block', width: 700, paddingLeft: 30 }}> <h4>ReactJS Evergreen Checkbox Component</h4> <Checkbox onChange={() => { alert("You Checked the box!") }} label="Do you Agree to Rules and Regulations" /> </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://evergreen.segment.com/components/checkbox Comment More infoAdvertise with us Next Article ReactJS Evergreen Checkbox Component gouravhammad Follow Improve Article Tags : JavaScript Web Technologies ReactJS ReactJS-Evergreen Similar Reads ReactJS Evergreen Combobox 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. Combobox Component allows the user to select an option from a predefined list of options. We can use the following approach 2 min read ReactJS Evergreen Button 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. Button Component allows the user to take actions, and make choices, with a single tap. We can use the following approach in 3 min read ReactJS Evergreen Alert 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. Alert Component is used for are urgent interruptions, requiring acknowledgment, that informs the user about a situation. We 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 Re 2 min read ReactJS Evergreen Tab 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. Tab Component allows the user to switch between components present in given different tabs. It is used for organizing our c 2 min read ReactJS Evergreen Avatar 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. Avatar components are used to represent users only. We can use the following approach in ReactJS to use the Evergreen Avata 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 Evergreen Menu 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. Menu Component allows the user to show a list of actions that the user can take. We can use the following approach in React 3 min read ReactJS Evergreen Autocomplete 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. Autocomplete Component is used for auto-completing the free text value with the option value. It basically allows the user 3 min read ReactJS Evergreen Radio 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. Radio Component allows the user to select one option from a set or list of items. We can use the following approach in Reac 3 min read Like