@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
Written by Lit Framework, relying on the cross-framework capabilities of Lit and Web Component, you can use this library on any framework (Vue, Angular, React, etc.).
- Material Design 3 & Material Expressive - tracks the MD3 / MD3E specs and is themed entirely through
--md-sys-*design tokens. - Framework agnostic - built with Lit and native Web Components, so the same
<mdc-*>elements work in React, Vue, Angular, Svelte, Astro, or plain HTML. - Tree-shakable - every component is its own entry point under
@sandlada/mdc/components/<name>/index, so you import only the elements you use. - Accessible by default - keyboard navigation, ARIA semantics and focus rings, with
forced-colors,prefers-contrast,reduced-motionandreduced-transparencysupport (WCAG 2.2+). - Modern baseline, zero polyfills - targets Baseline 2026 evergreen browsers with native CSS and no vendor prefixes or legacy fallbacks.
- TypeScript ready - ships
.d.tsdeclarations alongside the ESM build.
npm i @sandlada/mdcReplace imports from @sandlada/mdc/utils/controller with the entry point for each behavior.
| Symbols | Package subpath |
|---|---|
AttachableController, IAttachable |
@sandlada/mdc/utils/attachment |
TriggerController, TriggerKinds |
@sandlada/mdc/utils/trigger |
OverlayController, OverlayTreeManager, overlay placement and dismissal types |
@sandlada/mdc/utils/overlay |
SelectionController |
@sandlada/mdc/utils/selection |
ExpansionController, ExpansionGroupController |
@sandlada/mdc/utils/expansion |
MeasuredDimensionController, OpacityTransitionController |
@sandlada/mdc/utils/motion |
EdgeSlideController, Placement |
@sandlada/mdc/utils/edge-slide |
setupFormSubmitter, FormSubmitter, FormSubmitterType |
@sandlada/mdc/utils/form |
- Replace
DefaultOverlayTreewithgetOverlayTree(element.ownerDocument). Use the manager'ssnapshot,getOpenDescendantSurfaces(), andgetDeepestActiveLeafId()for tree queries. Coordinate validation now runs throughoverlay.showAt(x, y). - Update selection options through
controller.configure(options). - Replace
MeasuredContentWidthControllerwithMeasuredDimensionControllerusing the same target, dimension, duration, and easing. CreateOpacityTransitionControllerwith the same target, duration, and easing when the oldopacityoption was enabled or omitted.
For more information about MDC, please visit mdc.sandlada.com.
The component showcase (packages/dev-app) is deployed to mdc-dev-app.bre97-web.workers.dev via Cloudflare Workers Builds. Every push gets a preview deployment, so the site always tracks the latest state of the repository.
Don't know how to use MDC? Explore MDC with simple examples from Github Wiki - Examples.
If you want to follow the latest progress of MDC, please jump to issue Project Tracker.
