How srwither/m3ui-vue works
M3UI Vue is a Material Design 3 component library for Vue 3 and Tailwind CSS. An application imports components or composables from the package API, optionally installs the plugin to configure palette and locale behavior, then uses the library’s widgets and directives in its UI. The product spans general-purpose components and domain-specific tools for maps, flows, charts, documents, media, and editing. The graph groups related capabilities rather than listing every component. Unsampled subsystems are included where the README documents them; their internal call relationships are not inferred.
Main entry points: plugin.ts Vue plugin · useColorPalette.ts Color palettes · index.ts Package API · _ssrState.ts SSR state
Components 24
Library entry
- Package API
src/index.ts - Vue plugin
src/plugin.ts
Theme and interaction
- Theme control
src/composables/useTheme.ts - Color palettes
src/composables/useColorPalette.ts - Dynamic color
src/composables/dynamicColor.ts - Localization
src/composables/useLocale.ts - SSR state
src/composables/_ssrState.ts - Storage keys
src/composables/_storageKeys.ts - Interaction directives
src/directives
UI components
- Component library
src/components - Inputs and actions
src/components - Data display
src/components - Layout and navigation
src/components
Visual tools
- Charts
src/chart.ts - Drawing tools
src/draw.ts - Map tools
src/map.ts - Flow diagrams
src/flow.ts - Gantt and timeline
src/gantt.ts
Specialized tools
- PDF viewing
src/pdf.ts - Media playback
src/media.ts - Editors and code
src - Barcode tools
src/barcode.ts - Markdown
src/markdown.ts
Other components
- Application developer
Connections 24
- Application developer → Package API: imports
README.md - Package API → Vue plugin: exports
src/index.ts - Package API → Component library: exports components
src/index.ts - Vue plugin → Color palettes: configures
src/plugin.ts - Vue plugin → Localization: provides locale
src/plugin.ts - Vue plugin → SSR state: reads state
src/plugin.ts - Vue plugin → Storage keys: uses keys
src/plugin.ts - Color palettes → Dynamic color: generates schemes
src/composables/useColorPalette.ts - Color palettes → SSR state: reads and writes
src/composables/useColorPalette.ts - Color palettes → Storage keys: uses keys
src/composables/useColorPalette.ts - SSR state → Storage keys: uses keys
src/composables/_ssrState.ts - Application developer → Inputs and actions: uses
README.md - Application developer → Data display: uses
README.md - Application developer → Layout and navigation: uses
README.md - Application developer → Charts: uses
README.md - Application developer → Drawing tools: uses
README.md - Application developer → Map tools: uses
README.md - Application developer → Flow diagrams: uses
README.md - Application developer → Gantt and timeline: uses
README.md - Application developer → PDF viewing: uses
README.md - Application developer → Media playback: uses
README.md - Application developer → Editors and code: uses
README.md - Application developer → Barcode tools: uses
README.md - Application developer → Markdown: uses
README.md