Airframe React Dashboard
A React admin dashboard template built with Bootstrap 4, featuring many UI components and pages for admin and analytics applications.
By 0wczar 0wczar/airframe-react 3,984 stars
Introduction
Airframe React Dashboard is a React‑based admin template built with Bootstrap 4. It provides a large collection of ready‑made pages, UI components and layout variations for building admin panels, analytics dashboards and similar applications.
What this project offers
- A complete React application scaffold with routing, state handling and styling.
- More than 120 pre‑built pages covering dashboards, forms, tables, charts and widgets.
- Multiple layout options and theme support.
- Integration of popular libraries such as ag‑grid, Recharts, React Router and React Bootstrap.
Main features
- Layout variations – several preset layouts that can be switched or customized.
- ag‑grid tables – powerful data tables with sorting, filtering and pagination.
- Recharts charts – ready‑to‑use chart components for visualising data.
- React Router navigation – client‑side routing for a single‑page experience.
- Responsive design – works on desktop, tablet and mobile devices.
- Theme support – easy colour and style changes via the
colors.jsand SCSS files. - Form components – inputs, date pickers, file uploads, rich text editor, etc.
- Sidebar navigation – collapsible side menu with icons and badges.
- Toast notifications – user feedback via
react-toastify.
Technology stack
- React 16.8+
- Bootstrap 4.3
- Webpack 4 (build tool)
- ag‑grid, Recharts, React Router, React Bootstrap and many other React libraries.
Requirements
- Node.js 10 or newer
- npm (comes with Node.js)
Installation
- Download the source – obtain the ZIP file from
/download/airframe-react-dashboard.zipand extract it to a folder on your computer. - Open a terminal and change to the extracted folder:
cd path/to/airframe-react-dashboard
- Install dependencies
npm install
- Build the production bundle (the project needs to be built before it can be served). The verified build script is
build:prod.
npm run build:prod
This command clears the dist folder, runs the Webpack production configuration and creates the compiled files in dist/.
- Run the development server (optional, for local development).
npm start
The command executes start:dev, which starts webpack-dev-server with hot reloading. The app will be available at http://localhost:8080 (default port).
- Serve the built files
After the production build finishes, the ready‑to‑use files are located in the
dist/directory. You can serve this folder with any static web server, for example usingserve(install globally if needed):
npm install -g serve
serve -s dist
Then open the shown URL in a browser to view the dashboard.
Configuration
- Webpack configuration – edit
build/webpack.config.client.dev.jsorbuild/webpack.config.client.prod.jsto change entry points, output paths or loader options. - Colors and theme – modify
app/colors.jsor the SCSS files underapp/styles/to adjust the colour palette. - Routes – add or modify pages in
app/routes/and register them inapp/routes/index.js.
Customizing the project
- Add new React components under
app/components/. - Place global SCSS files in
app/styles/to extend or override default styles. - Adjust the sidebar or navbar by editing the components in
app/components/Sidebar/andapp/components/Navbar/.
Project structure
LICENSE
README.md
app/
index.html
index.js
colors.js
colors.scss
common.js
components/
... (React component folders)
images/
avatars/
favicons/
logos/
layout/
components/
default.js
routes/
Apps/
Cards/
Dashboards/
Forms/
Graphs/
Icons/
Interface/
Layouts/
Pages/
Tables/
Widgets/
components/
index.js
styles/
bootstrap.scss
components/
main.scss
plugins/
variables.scss
utilities.js
build/
cli-tools.js
webpack.config.client.dev.js
webpack.config.client.prod.js
config.js
package.json
postcss.config.js
vercel.json
Tips
- Use
npm run build:devfor a faster development build that includes source maps. - The
dist/folder is regenerated on each build; do not edit files inside it directly. - For production deployment, copy the entire
dist/directory to your web server or static‑site host.
License and attribution
The project is released under the MIT License. See the LICENSE file in the repository.
Original repository: https://github.com/0wczar/airframe-react
When redistributing, keep the license file and give credit to the original author.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add Airframe React Dashboard to a website or app you already have.
- Download the ZIP and put the project next to your own code.
- Fill in the bracketed parts, such as
[describe your stack]. - Paste the prompt into your assistant and review each change it proposes.
# Integrate Airframe React Dashboard ## Role You are a senior frontend developer assisting me in adding the Airframe React Dashboard UI components to my existing web application. ## Project description Airframe React Dashboard is a React admin dashboard template built with Bootstrap 4. It provides a large collection of ready‑to‑use UI components, layout variations, sidebar navigation, charts (ag‑grid, Recharts), forms, tables, and responsive pages. The project is bundled with Webpack and uses React 16.8, React Router 5, and various React component libraries. ## Source project - Repository: https://github.com/0wczar/airframe-react - License: MIT - UI framework: Bootstrap 4 (via `bootstrap` ^4.3.1) - Build tooling: Webpack ^4.33.0, Babel, Sass (node‑sass, sass‑loader) - Main dependencies (as listed in `package.json`): - `react` ^16.8.6, `react-dom` ^16.8.6, `react-router` ^5.0.1, `react-router-dom` ^5.0.1 - `bootstrap` ^4.3.1, `@owczar/dashboard-style--airframe` ^0.2.2 - UI libraries: `ag-grid-react`, `recharts`, `react-beautiful-dnd`, `react-big-calendar`, `react-bootstrap-table*`, `react-datepicker`, `react-quill`, `react-toastify`, etc. - Build scripts: `npm run build:prod` (produces the production files in `dist/`). ## Target project context - **Stack description**: `[describe your stack, e.g. Laravel 11 + Blade]` - **UI insertion point**: `[where the UI should go, e.g. inside a <div id="admin-dashboard"></div> component]` - **Existing CSS framework**: `[e.g. Tailwind, Bulma, custom CSS]` ## Integration objectives - Bring over the dashboard layout (header, sidebar, main content area). - Import selected UI components (tables, charts, forms) that I will use in my pages. - Reuse existing page routes where possible, keeping my current URL structure. - Preserve my authentication, state management, and data fetching logic. ## Required components - Layout components: `app/components/Layout/`, `app/components/Sidebar/`, `app/components/Navbar/`. - Common UI widgets: `Accordion`, `Card`, `Progress`, `Toast` (`react-toastify`), `SidebarMenu`, `SidebarTrigger`. - Data display: `agGrid.js`, `Recharts/` components, `react-bootstrap-table*` tables. - Form elements: `CustomInput`, `DatePicker`, `Quill` editor, `Toggle`. - Page examples to copy as reference: any page under `app/routes/` (e.g., `Dashboards/`, `Tables/`, `Graphs/`). ## Layout and styling requirements - Keep Bootstrap styles scoped to the dashboard area to avoid conflicts with my existing styles. - Use a CSS namespace or wrapper class (e.g., `<div class="airframe-dashboard">`) around the imported components. - Ensure the imported SCSS files (`app/styles/bootstrap.scss`, `app/styles/main.scss`, `app/styles/variables.scss`) are compiled with my build pipeline, preserving variable overrides if I have my own design tokens. - Do not modify global Bootstrap defaults unless necessary; prefer overriding via the dashboard’s SCSS variables. ## Asset management - CSS/SCSS: copy `app/styles/` (including `bootstrap.scss`, `main.scss`, `variables.scss`) into my project’s style source directory and import them in my main stylesheet. - JavaScript: import the needed components from `app/components/` and `app/routes/` into my React codebase. - Images & fonts: copy the `app/images/` folder (avatars, favicons, logos) to my public assets folder. - Do not duplicate libraries that already exist in my project (e.g., if I already use Bootstrap or Font‑Awesome, rely on the existing packages). - Use my existing bundler (Webpack, Vite, etc.) to process the SCSS and JS; add any missing loaders (sass‑loader, css‑loader, file‑loader) if they are not present. ## Routing and navigation - Review my current router configuration. - Add routes that point to the dashboard pages under a common prefix (e.g., `/admin/*`). - Keep existing URLs unchanged; map Airframe routes to my route definitions without overriding my app’s core routes. - Use `react-router`’s `<Route>` components to lazy‑load dashboard pages where appropriate. ## Responsive requirements - Preserve the responsive behavior built into Bootstrap 4 and the dashboard’s media queries. - Test the layout on typical breakpoints (mobile, tablet, desktop) to ensure the sidebar collapses and the grid adjusts correctly. ## Accessibility requirements - Ensure all imported components retain their ARIA attributes (e.g., navigation landmarks, form labels). - Verify color contrast meets WCAG AA for the Bootstrap theme used. - Include keyboard navigation for sidebar and menu items. ## Compatibility requirements - My project must use Node >= 10 and npm. - Ensure React version compatibility: the dashboard requires React ^16.8.6; if I use a newer React, verify that the components still work. - Bootstrap version must be 4.x; if I use Bootstrap 5, either downgrade the dashboard styles or adjust the SCSS imports. - A build step is required: run `npm run build:prod` in the dashboard source to generate compiled assets, then integrate the output or configure my bundler to process the source files directly. ## Preserve the existing application - First, inspect the current codebase before modifying any file. - Do not replace or rewrite my authentication, global state, or data‑layer code. - Make only small, reviewable changes (add new components, import styles, add routes). - Ask for confirmation before deleting or moving any existing files. ## Testing and verification checklist - [ ] Run the existing application’s test suite and confirm no failures. - [ ] Verify that the dashboard UI renders inside the designated container without breaking existing styles. - [ ] Check that the sidebar navigation works and does not interfere with my own menus. - [ ] Confirm that all imported charts and tables display data correctly. - [ ] Test responsive breakpoints (mobile, tablet, desktop). - [ ] Validate accessibility: keyboard navigation, ARIA roles, color contrast. - [ ] Ensure no duplicate libraries are loaded (check bundle size and console warnings). - [ ] Verify that existing routes and URLs remain unchanged. - [ ] Run a production build of the whole application and confirm the dashboard assets are included correctly.
