Lightning Web Components (LWC) is Salesforce's open foundation for building custom elements with HTML, modern JavaScript, and native Web Components.
Overview
Lightning Web Components provides the engine and compiler used to create standards-based custom elements for web applications. It targets teams that want components built on ordinary HTML, ECMAScript modules, and CSS rather than proprietary component syntax alone.
The runtime is lean, with documentation and a playground for learning. New apps can be bootstrapped with the LWR tool via npm, including a single-page app variant that selects LWC as the project type.
Components are intended to run in modern browsers and Internet Explorer 11. The stack is framed as portable: learn once and build in environments that fit your team's tooling, with community contribution shaping the roadmap.
LWC is open source under MIT and is distinct from Salesforce product UIs while sharing the same component model.
Key features
- Web Components foundation
- LWC compiler and engine
- HTML and modern JavaScript
- LWR project scaffolding
- Developer guide and playground
- Custom element authoring
- Cross-environment component model
- Open-source MIT core
Use cases
- Standards-based UI components
- Single-page apps with LWR
- Portable web component libraries
- Enterprise front-end modules