@airmoney-degn/react-ui v5.6.6
Air Money Degn React UI Library
A comprehensive React UI library built with TypeScript and Vite, providing reusable components, hooks, and utilities for the Air Money application.
Features
Components
UI Components
Button
- Reusable button componentLoadingButton
- Button with loading stateErrorMessage
- Error message display componentSimpleLoading
- Loading indicatorFullscreenLoadingMessage
- Fullscreen loading stateFrame
- Container componentCenteredFlex
- Flex container with centered content
Input Components
NumberInput
- Number input fieldNumPad
- Numeric keypad componentBlockSelector
- Block selection componentCarouselSelector
- Carousel-based selector
Display Components
Chart
- Chart visualization componentColoredValue
- Value display with color codingFormattedValue
- Formatted value displayCoinBadge
- Cryptocurrency badge componentStatefulBox
- Stateful container component
Hooks
Input Handling
useNumpad
- Numeric keypad hookuseNumpadV2
- Updated numeric keypad hookuseKey
- Keyboard input handlinguseKeyV2
- Updated keyboard input handlinguseBackKey
- Back key handling
UI Interaction
useCarousel
- Carousel functionalityuseCarouselV2
- Updated carousel functionalityuseScrollIntoView
- Scroll managementuseDeviceButton
- Device button handling
State Management
usePairValue
- Pair value managementuseNetworkStatus
- Network status trackinguseAsyncFnReset
- Async function reset handlinguseCallbackRef
- Callback reference managementuseFakeTransactionMessage
- Transaction message simulation
Utilities
formatter
- Value formatting utilitiescx
- Class name utilitygetStep
- Step calculation utilityonKeyChange
- Key change handling utility
Contexts
AppContext
- Main application context for managing global stateAppProvider
- Provider component for AppContextuseApp
- Hook for accessing AppContext values
Additional Modules
- Shandc - A collection of specialized components, hooks, and utilities
Usage
Import components and hooks as needed:
// Basic UI components
import { Button, ErrorMessage, SimpleLoading, ... } from '@airmoney-degn/react-ui';
// Input components
import { NumberInput, NumPad, BlockSelector, ... } from '@airmoney-degn/react-ui';
// Display components
import { Chart, ColoredValue, CoinBadge, ... } from '@airmoney-degn/react-ui';
// Hooks
import { useNumpad, useKey, useNetworkStatus, ... } from '@airmoney-degn/react-ui';
// Context
import { AppProvider, useApp, ... } from '@airmoney-degn/react-ui';
// Utilities
import { formatter, cx, getStep, ... } from '@airmoney-degn/react-ui';
License
This project is proprietary and confidential. All rights reserved.
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago