
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
ng-lightning
Advanced tools
Native Angular components and directives for Lightning Design System
This library contains native Angular components and directives written from scratch in TypeScript using the Lightning Design System CSS framework.
We are looking for community help to find and fix bugs, improve demo site and create new components.
Install through npm
:
npm install --save ng-lightning
This library depends on Salesforce's LDS markup and CSS (tested with 2.9). We don't ship any CSS file, but you have to take care of including LDS CSS rules in your page. There are various ways to achieve this, for example compiling through their source files (@salesforce-ux/design-system
) or by adding this into your <head>
:
<link rel="stylesheet" href="https://unpkg.com/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.min.css">
Because of various cross-domain issues, if you want to use SLDS icons, you must provide a copy of the various sprite files (ie @salesforce-ux/design-system/assets/icons/action-sprite/svg/symbols.svg
), served locally through your server.
Unfortunately, IE11 does not support two important features.
SVG External Content, used to load SVG icons from a spritemap. In order to support this, you will need to use a small script called svg4everybody.
Available on npm cdn here.
Element.classList
on SVG elements, used by Angular's renderer.setElementClass
. See here for more information. Use classList.js shim, available on npm cdn here.
Typically, these shims should be placed within the <head>
element.
http://ng-lightning.github.io/ng-lightning/
We are always looking for high quality contributions! Please check the CONTRIBUTING.md doc for guidelines.
For questions on how to use ng-lightning or how to contribute, please post questions to using the
ng-lightning
tag. If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our GitHub Repository.
We support the same browsers and versions supported by both Angular and Salesforce's Lightning Design System.
Cross browser/environment testing is performed through Saucelabs.
FAQs
Native Angular components and directives for Lightning Design System
The npm package ng-lightning receives a total of 672 weekly downloads. As such, ng-lightning popularity was classified as not popular.
We found that ng-lightning demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.