Utilities
This page documents utility exports from src/lib/utils.ts and src/utilities/index.ts.
Core helper
cn
Class name merge helper based on clsx + tailwind-merge.
import { cn } from "@tesseract-nexus/tesserix-ui"DOM and accessibility
PortalVisuallyHiddenFocusTrapErrorBoundary
Theming
ThemeProvideruseTheme
Responsive helpers
useBreakpointuseMediaQueryShowHide
Animation helpers
FadeInSlideInScaleInuseAnimatedValue
Loading system
LoadingProvideruseLoadingLoadingSpinnerLoadingDotsLoadingOverlayLoadingSkeleton
Example
import {
ThemeProvider,
ErrorBoundary,
LoadingProvider,
LoadingOverlay,
FadeIn,
} from "@tesseract-nexus/tesserix-ui"Implementation guidance
- Wrap app roots with
ThemeProviderandLoadingProviderwhen global behavior is needed. - Use
ErrorBoundaryat route/layout boundaries for localized fallback recovery. - Use
Portalfor overlays that must escape clipping/stacking contexts. - Prefer
VisuallyHiddenfor screen-reader-only labels instead ofdisplay: none.