Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@microsoft/mgt-components
Advanced tools
The Microsoft Graph Toolkit (mgt) web components package is a collection of web components powered by Microsoft Graph. The components are functional, work automatically with Microsoft Graph, and work with any web framework and on all modern browsers.
Note: If you are building with React, you might find
@microsoft/mgt-react
useful as well.
See docs for full documentation
You can explore components and samples with the playground powered by storybook.
The Toolkit currently includes the following components:
The components work best when used with a provider. The provider handles authentication and the requests to the Microsoft Graph APIs used by the components.
The components can be used on their own, but they are at their best when they are paired with an authentication provider. This example illustrates how to use the components alongside a provider (MsalProvider in this case).
Install the packages
npm install @microsoft/mgt-element @microsoft/mgt-components @microsoft/mgt-msal-provider
Use components in your code
<script type="module">
import {Providers} from '@microsoft/mgt-element';
import {MsalProvider} from '@microsoft/mgt-msal-provider';
// import the components
import '@microsoft/mgt-components';
// initialize the auth provider globally
Providers.globalProvider = new MsalProvider({clientId: 'clientId'});
</script>
<mgt-login></mgt-login>
<mgt-person person-query="Bill Gates" person-card="hover"></mgt-person>
<mgt-agenda group-by-day></mgt-agenda>
FAQs
The Microsoft Graph Toolkit Components
The npm package @microsoft/mgt-components receives a total of 12,362 weekly downloads. As such, @microsoft/mgt-components popularity was classified as popular.
We found that @microsoft/mgt-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.