# Atrc (atrc) - Atomic React Components > Atrc or atrc, short for Atomic React Components, is a versatile collection of React components designed to empower your React projects, with a special emphasis on seamless integration with WordPress. These components follow the atomic design principles, providing a structured and scalable approach to building user interfaces. ## Projects using ATRC Check out these WordPress plugins that are currently using ATRC. Explore their codebases to see how ATRC is integrated and get started using ReactJS in your WordPress projects: - **Brand Master - Customize Login and User Frontend Dashboardr** GitHub Repository: [Brand Master GitHub Repository](https://github.com/codersantosh/brand-master) Brand Master is a WordPress plugin that allows you to customize the login page and user frontend dashboard. It utilizes ATRC for building its setting interface components. Explore the plugin's codebase to see how ATRC is implemented in a real-world WordPress project. - **Coming Soon and Maintenance Mode Page** GitHub Repository: [Coming Soon and Maintenance Mode Page GitHub Repository](https://github.com/codersantosh/acme-coming-soon) Coming Soon and Maintenance Mode Page is another WordPress plugin that helps you set up a coming soon or maintenance mode page for your website. This plugin also utilizes ATRC for its user interface components. Dive into the plugin's code to see how ATRC can be used effectively in WordPress plugin development. Feel free to explore these projects to gain insights into using ATRC in WordPress plugin development. ## Prerequisites Before incorporating Atrc into your React project, ensure that the following prerequisites are met: 1. **React Project Setup:** Atrc is designed for React applications, so make sure you have a React project set up and configured. 2. **Node.js and npm:** Atrc is distributed as an npm package. Ensure that you have Node.js and npm installed on your development environment. You can download and install them from [https://nodejs.org/](https://nodejs.org/). 3. **Use atomic CSS:** This project utilizes [Atomic CSS](https://github.com/codersantosh/atomic-css). Ensure that you integrate it into your React project. If you are using it with WordPress, consider using the `wp_enqueue_scripts`, `admin_enqueue_scripts`, `enqueue_block_editor_assets` or any appropriate hooks and in the callback function use `wp_register_style` and `wp_enqueue_style` hooks to load the CSS. Example for normal use: ```html ``` Example for WordPress integration: ```php /* Register Atomic CSS*/ wp_register_style( 'atomic', 'path/to/atomic.min.css' ); // Enqueue Atomic CSS stylesheet wp_enqueue_style( 'atomic' ); ``` 4. **@wordpress/scripts (Recommended for WordPress Integration):** If you are planning to use Atrc within a WordPress project, it is recommended to set up and use `@wordpress/scripts` for streamlined integration. `@wordpress/scripts` facilitates the integration of React components into WordPress plugins and themes and provides a smooth development experience. You can find more information about `@wordpress/scripts` in the [official documentation](https://developer.wordpress.org/block-editor/packages/packages-scripts/). 5. **Knowledge of Atomic Design Principles:** Familiarize yourself with atomic design principles, as Atrc follows this design methodology. Understanding atoms, molecules, organisms, templates, and pages will help you leverage Atrc's full potential in your project. Once you have these prerequisites in place, you are ready to seamlessly integrate Atrc into your React project and enjoy the benefits of its atomic components. ## Table of contents - [Atrc (atrc) - Atomic React Components](#atrc-atrc---atomic-react-components) - [Projects using ATRC](#projects-using-atrc) - [Prerequisites](#prerequisites) - [Table of contents](#table-of-contents) - [Getting Started](#getting-started) - [Installation](#installation) - [Usage](#usage) - [Import the Atrc components into your React component](#import-the-atrc-components-into-your-react-component) - [Use the components within your React component](#use-the-components-within-your-react-component) - [All available components](#all-available-components) - [Contributing](#contributing) - [Authors](#authors) - [License & Attribution](#license--attribution) ## Getting Started Follow these instructions to set up Atrc in your local development environment: ## Installation **BEFORE YOU INSTALL:** please read the [prerequisites](#prerequisites) To install and set up the library, run: ```sh $ npm install atrc ``` Or if you prefer using Yarn: ```sh $ yarn add atrc ``` ## Usage Now that you have Atrc installed, you can use the components in your React project. Here's a basic example: ### Import the Atrc components into your React component: ```js import { AtrcButton, AtrcCheckbox } from 'atrc'; ``` ### Use the components within your React component: ```js const MyComponent = () => { return (