How availity/element works
Availity Element is a reusable React component library for the Availity design system, built on Material UI and design tokens. A consuming application wraps its UI in the theme provider and imports components from the aggregate Element package. Beyond general UI primitives, the workspace provides controlled forms, authorization, favorites, and Spaces navigation with SSO and payer/disclaimer modal flows. The graph emphasizes those distinct product areas; several package implementations are represented by their exact source paths, but their internal calls were not sampled.
Main entry points: linkHandlers.tsx Link handlers · useLink.tsx Space link hook · ModalProvider.tsx Modal provider · utils.ts Favorites operations
Components 19
Application entry
- Theme provider
packages/theme-provider/src/lib/theme-provider.tsx - Component exports
packages/element/src/index.ts
UI foundation
- Design tokens
packages/design-tokens/src/index.ts - Legacy theme
packages/theme/src/lib/legacy-theme.ts
Forms and access
- Autocomplete
packages/autocomplete/src/lib/Autocomplete.tsx - Controlled form
packages/controlled-form/src/lib/Autocomplete.tsx - Form utilities
packages/form-utils/src/lib/SearchBy.tsx - Authorization gate
packages/authorize/src/lib/Authorize.tsx
Spaces navigation
- Spaces provider
packages/spaces/src/lib/Spaces.tsx - Space link hook
packages/spaces/src/lib/SpacesLink/useLink.tsx - Link handlers
packages/spaces/src/lib/SpacesLink/linkHandlers.tsx - Modal provider
packages/spaces/src/lib/modals/ModalProvider.tsx - URL helpers
packages/spaces/src/lib/helpers.tsx - Top apps
packages/spaces/src/lib/topApps.tsx
User state
- Favorites
packages/favorites/src/lib/Favorites.tsx - Favorites operations
packages/favorites/src/lib/utils.ts
Other components
- Consuming app
- Native form service
- Favorites service
Connections 13
- Consuming app → Theme provider: wraps UI
- Consuming app → Component exports: imports components
- Legacy theme → Design tokens: styles with
packages/theme/src/lib/legacy-theme.ts - Spaces provider → Space link hook: provides spaces
packages/spaces/src/lib/SpacesLink/useLink.tsx - Space link hook → Modal provider: opens modal
packages/spaces/src/lib/SpacesLink/useLink.tsx - Space link hook → Link handlers: dispatches link
packages/spaces/src/lib/SpacesLink/useLink.tsx - Link handlers → URL helpers: builds URL
packages/spaces/src/lib/SpacesLink/linkHandlers.tsx - Link handlers → Top apps: updates app
packages/spaces/src/lib/SpacesLink/linkHandlers.tsx - Link handlers → Native form service: submits SSO
packages/spaces/src/lib/SpacesLink/linkHandlers.tsx - Modal provider → URL helpers: builds URL
packages/spaces/src/lib/modals/ModalProvider.tsx - Modal provider → Top apps: updates app
packages/spaces/src/lib/modals/ModalProvider.tsx - Favorites → Favorites operations: loads and submits
packages/favorites/src/lib/Favorites.tsx - Favorites operations → Favorites service: queries service