### Getting Started with Atomix Source: https://github.com/shohojdhara/atomix/blob/main/docs/getting-started/quick-start.md Instructions on how to install the Atomix package and a basic setup example for integrating it into a React application. ```APIDOC ## Getting Started with Atomix ### Description This section covers the installation and basic setup of the Atomix design system. ### Installation ```bash npm install @shohojdhara/atomix ``` ### Basic Setup ```jsx import React from 'react'; import { Button, Card, Avatar } from '@shohojdhara/atomix'; import '@shohojdhara/atomix/css'; function App() { return ( ); } function HoverPopover() { return (
Hover over me for more info
); } function PositionExamples() { const content =
Popover content
; return (
); } ``` -------------------------------- ### E-commerce Navigation Example Source: https://github.com/shohojdhara/atomix/blob/main/src/components/Navigation/SideMenu/SideMenu.README.md A React example demonstrating how to use the SideMenu component to create an e-commerce navigation structure. ```APIDOC ## E-commerce Navigation ### Description An example of implementing an e-commerce navigation menu using the SideMenu, SideMenuList, and SideMenuItem components in React. ### Method None ### Endpoint None ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```tsx } active> Electronics }> Clothing }> Home & Garden }> My Account }> Order History }> Wishlist ``` ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### Install and Use Atomix CLI Source: https://github.com/shohojdhara/atomix/blob/main/src/lib/theme/devtools/README.md Instructions for installing the Atomix package and executing various theme management commands such as validation, inspection, and comparison. ```bash npm install @shohojdhara/atomix atomix-theme validate atomix-theme list atomix-theme inspect --theme my-theme atomix-theme compare --theme1 light --theme2 dark atomix-theme export --theme my-theme --output theme.json atomix-theme help ``` -------------------------------- ### Install Build Tool Dependencies Source: https://github.com/shohojdhara/atomix/blob/main/docs/CLI_PEER_DEPENDENCIES.md Commands to install necessary build tools including SCSS support, TypeScript definitions, and ESLint configurations. ```bash npm install --save-dev sass npm install --save-dev typescript @types/react @types/react-dom npm install --save-dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser ``` -------------------------------- ### Build Onboarding Flow with Icons Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/steps.md Demonstrates an onboarding flow where steps are represented by icons, allowing users to navigate through setup tasks while tracking completion state. ```jsx function OnboardingFlow() { const [activeStep, setActiveStep] = useState(0); const steps = [ { number: , text: 'Profile Setup' }, { number: , text: 'Preferences' } ]; return (
); } ``` -------------------------------- ### Basic React Setup with Atomix Components Source: https://context7.com/shohojdhara/atomix/llms.txt Demonstrates how to set up a basic React application using Atomix components. It includes importing necessary components and styles, and rendering a sample Card with a Button and Badge within a ThemeProvider. ```tsx import { Button, Card, Badge, ThemeProvider } from '@shohojdhara/atomix'; import '@shohojdhara/atomix/css'; function App() { return (

Welcome to Atomix

New

A modern design system for building amazing interfaces.

); } ``` -------------------------------- ### Atomix Global Configuration Setup Source: https://github.com/shohojdhara/atomix/blob/main/docs/api/javascript.md Configures Atomix UI globally by setting properties like prefix, theme, breakpoints, and animations. It also provides functions to get the current configuration. This setup affects the behavior and styling of all Atomix components. ```javascript // Configure Atomix globally Atomix.configure({ prefix: 'atomix', theme: 'light', breakpoints: { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200, xxl: 1440 }, animations: { duration: 300, easing: 'ease-in-out' } }); // Get current configuration const config = Atomix.getConfig(); ``` -------------------------------- ### Basic React Theme Setup with Atomix Source: https://github.com/shohojdhara/atomix/blob/main/docs/THEME_SYSTEM.md Demonstrates setting up a basic theme in a React application using Atomix. It includes creating a theme with custom colors and applying it via ThemeProvider. It also shows how to use the useTheme hook to access and switch themes within components. ```tsx import { ThemeProvider, useTheme, createTheme } from '@shohojdhara/atomix/theme'; // Create a theme const myTheme = createTheme({ name: 'My Theme', palette: { primary: { main: '#7AFFD7' }, secondary: { main: '#FF5733' }, }, }); function App() { return ( ); } // Use theme in components function MyComponent() { const { theme, setTheme, availableThemes } = useTheme(); return (

Current theme: {theme}

); } ``` -------------------------------- ### Configuring Nav Alignment Options Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/nav.md Examples of how to use the alignment prop to position navigation items at the start, center, or end of the container. ```jsx function AlignmentExamples() { return (
); } ``` -------------------------------- ### Navigation Example (JSX) Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/index.md Demonstrates how to build a navigation bar using the Navbar, Button, and Badge components, including a notification badge. ```jsx import { Navbar, Button, Badge } from '@shohojdhara/atomix'; function MainNavigation() { return ( My App Dashboard Messages ); } ``` -------------------------------- ### Best Practices for Accordion Content Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/accordion.md Examples of well-structured accordion content versus poorly structured content to guide developers on maintaining usability. ```jsx // Good: Clear structure
Two-factor authentication
// Bad: Too much content
{/* Hundreds of lines of content */}
``` -------------------------------- ### Create Astro Project with Minimal Template Source: https://github.com/shohojdhara/atomix/blob/main/examples/astro-example/README.md This command initializes a new Astro project using the official minimal starter template. It requires Node.js and npm to be installed. The command prompts for project name and installs necessary dependencies. ```sh npm create astro@latest -- --template minimal ``` -------------------------------- ### Implement ThemeProvider with Config-First Approach Source: https://github.com/shohojdhara/atomix/blob/main/docs/CONFIG_AUTOMATIC_LOADING.md Shows the recommended setup for new users by creating an atomix.config.ts file and using the ThemeProvider component without explicit props. ```tsx // 1. Create atomix.config.ts (required) // 2. Use ThemeProvider without props ``` -------------------------------- ### AtomixGlass Migration Guide: Boolean to Auto-Detection Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/atomix-glass-overlight-audit.md Provides a clear example of migrating from the older boolean-based control of the overLight prop to the more flexible 'auto' detection mode in AtomixGlass. ```tsx Before: After: ``` -------------------------------- ### Atomix Avatar Component Examples Source: https://github.com/shohojdhara/atomix/blob/main/docs/getting-started/quick-start.md Demonstrates various ways to use the Atomix Avatar component, including basic setup, fallback with initials, and grouping multiple avatars. ```jsx // Basic avatar // With fallback // Avatar group ``` -------------------------------- ### Basic Masonry Example Source: https://github.com/shohojdhara/atomix/blob/main/docs/layouts/index.md Illustrates the usage of MasonryGrid and MasonryGridItem for creating Pinterest-style layouts. ```APIDOC ## Basic Masonry Example ### Description Illustrates the usage of MasonryGrid and MasonryGridItem for creating Pinterest-style layouts. ### Method `JSX` ### Endpoint `N/A` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```jsx import { MasonryGrid, MasonryGridItem } from '@shohojdhara/atomix'; Item 1 Item 2 ``` ### Response No specific response, this is a client-side rendering example. ``` -------------------------------- ### Complete React ThemeProvider Example Source: https://github.com/shohojdhara/atomix/blob/main/docs/THEME_SYSTEM.md A comprehensive example of setting up ThemeProvider in a React application, including creating custom themes, using useTheme hook for theme switching, and integrating ThemeErrorBoundary. ```tsx import React from 'react'; import { ThemeProvider, ThemeErrorBoundary, useTheme, createTheme, } from '@shohojdhara/atomix/theme'; const lightTheme = createTheme({ name: 'Light', palette: { primary: { main: '#3b82f6' }, background: { default: '#ffffff' }, }, }); const darkTheme = createTheme({ name: 'Dark', palette: { primary: { main: '#60a5fa' }, background: { default: '#111827' }, }, }); function ThemeSelector() { const { theme, setTheme } = useTheme(); return ( ); } function App() { return ( { console.error('Theme error:', error); }} > ); } ``` -------------------------------- ### ButtonGroup with Buttons and Icons (React) Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/button-group.md An example of using ButtonGroup with buttons that include icons. It shows how to specify the icon name and its position ('start' or 'end') relative to the button label. ```jsx
); } ``` ``` -------------------------------- ### HTML Icon Initialization with Data Attributes Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/icon.md Provides examples of how to define and configure Atomix Icon components directly within HTML using data attributes. This allows for declarative icon setup without JavaScript. ```html ``` -------------------------------- ### Migration Guide: Replacing Image Tag with Atomix Logo Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/atomix-logo.md Provides a before-and-after example for migrating from a standard `` tag displaying a logo to using the `AtomixLogo` component. It highlights the change in implementation and the addition of an `aria-label` for accessibility. ```jsx // Before Logo // After ``` -------------------------------- ### Initialize Atomix Components Source: https://github.com/shohojdhara/atomix/blob/main/docs/api/javascript.md Demonstrates how to initialize all components, a subset of components, or components with custom selectors using the Atomix.init() method. ```javascript // Initialize all components Atomix.init(); // Initialize specific components Atomix.init(['Button', 'Modal', 'Dropdown']); // Initialize with custom selector Atomix.init({ components: ['Button'], selector: '.my-custom-selector' }); ``` -------------------------------- ### Astro Project Commands Source: https://github.com/shohojdhara/atomix/blob/main/examples/astro-example/README.md A list of common commands for managing an Astro project. These commands are executed from the project's root directory using npm. They cover dependency installation, starting the development server, building for production, and previewing the build. ```sh npm install npm run dev npm run build npm run preview npm run astro ... npm run astro -- --help ``` -------------------------------- ### Implement Registration Wizard with Steps Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/steps.md Shows a basic implementation of a multi-step registration form using the Steps component to track user progress through account creation. ```jsx function RegistrationWizard() { const [currentStep, setCurrentStep] = useState(0); const steps = [ { number: 1, text: 'Account' }, { number: 2, text: 'Profile' }, { number: 3, text: 'Preferences' }, { number: 4, text: 'Complete' } ]; return (
); } ``` -------------------------------- ### Step Wizard Example (React) Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/steps.md A comprehensive React example demonstrating a step wizard using the Steps component, including navigation buttons and conditional rendering of content based on the active step. ```jsx import { Steps } from '@shohojdhara/atomix'; import { useState } from 'react'; // Assume these are defined elsewhere // const PersonalInfoForm = () =>
Personal Info Form
; // const AddressForm = () =>
Address Form
; // const PaymentForm = () =>
Payment Form
; // const ReviewForm = () =>
Review Form
; function StepWizard() { const [activeStep, setActiveStep] = useState(0); const steps = [ { number: 1, text: 'Personal Info' }, { number: 2, text: 'Address' }, { number: 3, text: 'Payment' }, { number: 4, text: 'Review' } ]; const nextStep = () => { setActiveStep(prev => Math.min(prev + 1, steps.length - 1)); }; const prevStep = () => { setActiveStep(prev => Math.max(prev - 1, 0)); }; return (
{activeStep === 0 && } {activeStep === 1 && } {activeStep === 2 && } {activeStep === 3 && }
); } ``` -------------------------------- ### Installation Source: https://github.com/shohojdhara/atomix/blob/main/docs/layouts/index.md Install the Atomix package using npm. ```APIDOC ## Installation ### Description Install the Atomix package using npm. ### Method `npm` ### Endpoint `install @shohojdhara/atomix` ### Request Example ```bash npm install @shohojdhara/atomix ``` ### Response No specific response, installation confirmation is typically shown in the terminal. ``` -------------------------------- ### FAQ Section Example Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/accordion.md Illustrates how to use the Accordion component to build an FAQ section by dynamically rendering accordions from a data array. ```APIDOC ## FAQ Section ### Description This example demonstrates creating a dynamic FAQ section using the Accordion component, mapping an array of questions and answers to individual accordions. ### Method N/A (Component Usage) ### Endpoint N/A (Component Usage) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ```jsx function FAQSection() { const faqs = [ { id: 1, question: "What browsers are supported?", answer: "Atomix supports all modern browsers including Chrome 60+, Firefox 60+, Safari 12+, and Edge 79+." }, { id: 2, question: "Can I customize the theme?", answer: "Absolutely! Atomix provides a flexible theme system using CSS custom properties that allows you to customize colors, spacing, and other design tokens." }, { id: 3, question: "Is TypeScript supported?", answer: "Yes, Atomix is built with TypeScript and includes comprehensive type definitions for all components and their props." }, { id: 4, question: "How do I report bugs?", answer: "You can report bugs by creating an issue on our GitHub repository. Please include as much detail as possible to help us reproduce and fix the issue." } ]; return (

Frequently Asked Questions

{faqs.map((faq) => (

{faq.answer}

))}
); } ``` ### Response #### Success Response (200) N/A (Component Rendering) #### Response Example N/A ``` -------------------------------- ### Getting Help Source: https://github.com/shohojdhara/atomix/blob/main/docs/components/overview.md Resources for getting help and further information. ```APIDOC ## Getting Help - Check component stories in **Storybook** for interactive examples. - Review the **implementation guide** for setup instructions. - See the **theme system guide** for customization options. ``` -------------------------------- ### Initialize Atomix Migration Workflow Source: https://github.com/shohojdhara/atomix/blob/main/docs/CLI_MIGRATION_GUIDE.md Commands to prepare the environment, install the Atomix CLI package, and execute a dry-run migration analysis to identify necessary changes. ```bash git add . git commit -m "Before Atomix migration" npm install @shohojdhara/atomix npx atomix migrate --dry-run ```