This project is a simple React application that demonstrates custom checkboxes with hover and click functionality.
- Toggle checkboxes for "All pages" and individual "Page X".
- Hover effects to indicate the state changes.
- Click to toggle checkbox selection.
- Uses TypeScript for type safety.
Before you begin, ensure you have met the following requirements:
- Node.js installed on your local development environment.
- npm or yarn package manager installed.
- Basic understanding of React and TypeScript.
To install the dependencies, follow these steps:
-
Clone the repository:
git clone https://github.com/hemantso/ellty cd ellty
-
Install dependencies using npm:
npm install
or using yarn:
yarn
To start the development server and run the application:
npm start
or
yarn start
Open http://localhost:3000 to view it in the browser.
The project structure is organized as follows:
ellty/
│
├── public/
│ └── index.html
│
├── src/
│ ├── components/
│ │ ├── CustomCheckbox.tsx
│ │ └── CustomCheckbox.css
│ ├── App.tsx
│ ├── App.css
│ ├── index.tsx
│ └── ...
│
├── package.json
└── ...
The CustomCheckbox
component is responsible for rendering a custom styled checkbox with hover and click effects.
The App
component is the main entry point of the application. It manages the state for checkboxes and hover effects, and renders the checkbox components.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.