atm

Atomix

v0.4.6

    1. Home
    2. API Reference
    3. React API

Getting Started
  • Introduction
  • Installation
  • Quick Start
  • Migration Guide
  • CLI Reference
Design Tokens
  • Overview
  • All Tokens
  • Colors
  • Spacing
  • Typography
  • Grid
  • Elevation
Styles System
  • Architecture
  • Customization
  • Utilities
  • API Reference
Layouts
  • Grid System
  • Masonry Grid
  • Responsive Patterns
  • Customization
  • Performance
Components
  • Overview
  • Guidelines
  • Accordion
  • AtomixGlass
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • ButtonGroup
  • Card
  • Checkbox
  • Date Picker
  • Dropdown
  • Form
  • Input
  • Modal
  • Progress
  • Radio
  • Rating
  • Select
  • Slider
  • Spinner
  • Tab
  • Textarea
  • Toggle
  • Tooltip
  • Upload
  • Block
  • Callout
  • Countdown
  • Hero
  • Icon
  • List
  • Messages
  • Navbar
  • Pagination
  • Popover
  • Steps
  • SectionIntro
  • Container
  • Grid
  • GridCol
  • Row
  • River
  • MasonryGrid
  • DataTable
  • EdgePanel
  • SideMenu
  • Nav
  • NavItem
  • NavDropdown
  • VirtualizedGrid
Guides
  • Theming Guide
  • AtomixGlass Performance
  • AtomixGlass Theming
  • Theme Studio
  • Devtools
  • Theme Inspector
  • Theme Preview
  • Theme Comparator
  • Live Editor
  • CLI Tool
  • Try Live Editor
  • Try Inspector
  • Try Preview
  • Try Comparator
  • AtomixGlass Playground
Examples
  • Common Patterns
  • Landing Page
API Reference
  • React API
  • JavaScript API
  • CSS API
CLI
  • Overview
  • User Guide
  • API Reference
  • Migration Guide
  • Security Guide
Resources
  • Roadmap
  • Changelog
  • Contributing

Atomix Design System

A comprehensive design system for building modern, accessible, and performant web applications with React and vanilla JavaScript.
GitHubTwitterDiscordNPM

Getting Started

IntroductionInstallationQuick StartTheming Guide

Documentation

ComponentsDesign TokensStyles SystemLayouts

Resources

GitHub Repository↗NPM Package↗Storybook↗API Reference

Community

ContributingRoadmapChangelogReport Issue↗

© 2026 Atomix Design System. Built with ❤️ by the Shohojdhara.

API Reference - React

Complete API reference for Atomix React components and hooks

React API Reference

Complete reference for all React components in the Atomix Design System, including props, types, and usage examples.

Component Categories

Basic Components

Button

Interactive button component with multiple variants and states.

TSX
interface ButtonProps { variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'ghost' | 'outline-primary' | 'outline-secondary'; size?: 'sm' | 'md' | 'lg'; disabled?: boolean; loading?: boolean; type?: 'button' | 'submit' | 'reset'; children: React.ReactNode; onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void; className?: string; [key: string]: any; } // Usage <Button variant="primary" size="lg" onClick={handleClick}> Click me </Button>
16 lines498 characters
Badge

Small status indicators and labels.

TSX
interface BadgeProps { variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info'; size?: 'sm' | 'md' | 'lg'; children: React.ReactNode; className?: string; } // Usage <Badge variant="success">New</Badge>
9 lines231 characters
Icon

Icon wrapper component with consistent sizing.

TSX
interface IconProps { name: string; size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'; className?: string; } // Usage <Icon name="Check" size="lg" />
8 lines155 characters

Layout Components

Container

Responsive container component for centering content.

TSX
interface ContainerProps { fluid?: boolean; maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; children: React.ReactNode; className?: string; } // Usage <Container maxWidth="lg"> Content </Container>
11 lines205 characters
Grid Components

Flexible grid system with responsive columns.

TSX
interface GridProps { gutter?: number; justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'; align?: 'top' | 'middle' | 'bottom' | 'stretch' | 'baseline'; children: React.ReactNode; className?: string; } interface GridColProps { span?: number; offset?: number; order?: number; xs?: number | 'auto'; sm?: number | 'auto'; md?: number | 'auto'; lg?: number | 'auto'; xl?: number | 'auto'; xxl?: number | 'auto'; children: React.ReactNode; className?: string; } // Usage <Grid gutter={16}> <GridCol md={6} lg={4}> Content </GridCol> </Grid>
28 lines597 characters

Hooks

useTheme

Hook for managing theme state and preferences.

TSX
interface ThemeHook { theme: 'light' | 'dark' | 'high-contrast'; setTheme: (theme: 'light' | 'dark' | 'high-contrast') => void; systemTheme: 'light' | 'dark'; } // Usage const { theme, setTheme } = useTheme();
8 lines216 characters
useResponsive

Hook for responsive breakpoints and device detection.

TSX
interface ResponsiveHook { isMobile: boolean; isTablet: boolean; isDesktop: boolean; breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; } // Usage const { isMobile, breakpoint } = useResponsive();
9 lines208 characters

Types

Common Types
TSX
type ColorVariant = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info'; type SizeVariant = 'sm' | 'md' | 'lg'; type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; type Theme = 'light' | 'dark' | 'high-contrast';
10 lines247 characters
Utility Types
TSX
interface ClassNameProps { className?: string; } interface ChildrenProps { children: React.ReactNode; } type PolymorphicProps<E extends React.ElementType> = { as?: E; } & React.ComponentPropsWithoutRef<E>;
11 lines213 characters