Shared React UI components, hooks, and utilities for SMART on FHIR healthcare apps.
# Configure GitHub Packages registry for @max-health-inc scope
echo "@max-health-inc:registry=https://npm.pkg.github.com" >> .npmrc
# Install
bun add @max-health-inc/shared-uiimport { Button, Card, Spinner } from "@max-health-inc/shared-ui"
import "@max-health-inc/shared-ui/theme.css"- Button, Card, Badge, Input, Label, Select, Tabs, Dialog, Table, ScrollArea, Progress, Tooltip, DropdownMenu, Separator
- AppHeader, PatientBanner, ErrorBoundary, Spinner, Toaster
- FilterToolbar, PageHeader, StatCard, ResponsiveTabsList
useSmartAuth— SMART on FHIR auth state managementuseBranding— Dynamic brand theming from backenduseModalLayer/ModalStackProvider— Z-index stacking for modals
cn()— Tailwind class mergingcreateSmartAppConfig()/createSmartAuth()/buildFhirBaseUrl()— SMART app bootstrapformatHumanName()— FHIR HumanName formattercreateAuthFetch()/onAuthError()/reportAuthError()— Auth fetch wrapper
theme.css— CSS custom properties (light + dark mode) for the MaxHealth design system
bun install
bun run build # Build library
bun run dev # Watch mode
bun run typecheck # Type-check without emittingPush a tag to trigger the GitHub Actions workflow:
git tag v0.1.0
git push origin v0.1.0