Lightning Component Library
The Lightning Component Library includes component reference information and tools for Lightning Web Security and Lightning Locker.
You can find the Component Library in two places: a public site and an authenticated one that’s linked to your Salesforce org. In the authenticated site, the Component Reference section of the Component Library has some additional features.
- Public Component Library
View this site without logging in to Salesforce. The Component Reference includes documentation and reference information for the base components.
- Component Library for your org
View this site by logging in to your Salesforce org and navigating to
https://<myDomainName>.lightning.force.com/docs/component-library. Alternatively, click Link to your org at the top right on the public site.The authenticated site has more features for the Component Reference.
- View Lightning components that are unique to your org.
- View Lightning components that are installed in a managed package. You can filter to view components owned by your org or installed in packages.
The Component Library presents these tabs.
- Component Reference
- LWC Developer Guide
- LWS Console
- LWS Distortion Viewer
- Locker Console
- Locker API Viewer
The LWS and Locker tools are also available in the Tools section of the LWC Developer Center and DX Developer Center.
The Component Reference contains usage and implementation details for base components.
- Previously, the legacy Component Reference was available as part of the Component Library, which is no longer updated and will no longer be published in Spring ’26.
- After November 4, 2025, you can find the Component Reference at https://developer.salesforce.com/docs/platform/lightning-component-reference.
For information about the differences between the new and legacy Component Reference, see Lightning Component Reference: What's New?.
Here are some known issues with the legacy Component Reference.
- Non-lightning namespace differences in the public vs authenticated Component Reference
In the public site, the Component Reference for non-lightning namespaces can contain outdated content. For non-lightning components, such as
wave:waveDashboardorforce:createRecord, verify the specification and documentation inhttps://<myDomainName>.lightning.force.com/docs/component-library.- Documentation for Lightning web components developed in your org isn’t supported
The Component Reference doesn’t display documentation for your custom Lightning web components
- Specification panel missing content
Modules don’t display descriptions or methods on the Specification page. The descriptions and methods are on the Documentation page. Modules include:
lightning/empApilightning/flowSupportlightning/messageServicelightning/navigation
Some attributes that have default values don’t display a value in the Default column. See the Description column for default values.
Custom events aren’t displayed in Specification pages. See the component’s Documentation page for this information.
- Versioning and localization aren’t supported
The Component Reference doesn’t provide a Version or Language selector like other Salesforce developer documentation. It displays documentation that corresponds to the current release only, and the content is available only in English.
The Examples tab shows base component sample code that renders in a runtime environment on the page.
To experiment with a Lightning web component example, modify the code and click Run. Aura component examples aren’t editable but do render and you can interact with them.
The runtime environments don’t use the latest versions of the base components due to technical limitations. For this reason, component changes such as new documented attributes in recent releases aren’t reflected in the examples and don’t work if you add them to the examples. The new Component Reference site examples use the latest base components.
The runtime environments also don’t keep up with SLDS releases. The Web Content Accessibility Guidelines (WCAG) color updates that we announced in the See Improved Color Contrast in UI Elements Winter ’24 release note aren’t reflected in the examples. However, the base components that you use in your custom components and run in your Salesforce org do include the latest features of the base components and SLDS.
Lightning Web Security (LWS) Console and LWS Distortion Viewer help you develop secure JavaScript code that runs with Lightning Web Security.
For more information about using these tools, see Evaluate JavaScript in Lightning Web Security Console and Look Up Distortion Details in Lightning Web Security Distortion Viewer.
For more about Lightning Web Security and how it compares to Lightning Locker, see Lightning Web Security.
The Locker Console and Locker API Viewer help you develop secure JavaScript code that is compatible and runs efficiently with Lightning Locker.
For more information about using these tools, see Lightning Locker Tools in the Lightning Aura Components Developer Guide.
For more about Lightning Locker and Lightning web components, see Lightning Locker in Security for Lightning Components.