@tesserix/utils
v1.0.0
Published
Tesserix Design System - Cross-platform utilities and components for web and React Native
Downloads
230
Maintainers
Readme
@tesserix/utils
Cross-platform utilities and components for web and React Native applications.
Installation
npm install @tesserix/utils
# or
pnpm add @tesserix/utils
# or
yarn add @tesserix/utilsUsage
import { ErrorBoundary, LoadingProvider, useLoading } from '@tesserix/utils'
function App() {
return (
<ErrorBoundary>
<LoadingProvider>
<MyApp />
</LoadingProvider>
</ErrorBoundary>
)
}Available Utilities
Error Handling
ErrorBoundary- Catch and handle component errors
Loading States
LoadingProvider- Global loading state provideruseLoading- Access loading stateLoadingSpinner- Loading spinner componentLoadingDots- Animated loading dotsLoadingOverlay- Full-screen loading overlayLoadingSkeleton- Skeleton placeholder
Theme Management
ThemeProvider- Theme context provideruseTheme- Access theme context
Platform Compatibility
All utilities in this package are cross-platform and work with both React (web) and React Native.
Platform-specific implementations are automatically selected based on the runtime environment.
License
MIT
