No Packages Misplaced

    TypeScript icon, indicating that this package has built-in type declarations

    1.10.4 • Public • Published

    FAST Element

    License: MIT npm version

    The fast-element library is a lightweight means to easily build performant, memory-efficient, standards-compliant Web Components. FAST Elements work in every major browser and can be used in combination with any front-end framework or even without a framework.


    From NPM

    To install the fast-element library, use either npm or yarn as follows:

    npm install --save @microsoft/fast-element
    yarn add @microsoft/fast-element

    Within your JavaScript or TypeScript code, you can then import library APIs like this:

    import { FASTElement } from '@microsoft/fast-element';

    :::tip Looking for a setup that integrates with a particular front-end framework or bundler? Check out our integration docs. :::

    From CDN

    A pre-bundled script that contains all APIs needed to build web components with FAST Element is available on CDN. You can use this script by adding type="module" to the script element and then importing from the CDN.

    <!DOCTYPE html>
    <html lang="en">
            <script type="module">
              import { FASTElement } from "";
              // your code here
        <!-- ... -->

    The markup above always references the latest release. When deploying to production, you will want to ship with a specific version. Here's an example of the markup for that:

    <script type="module" src=""></script>

    :::note For simplicity, examples throughout the documentation will assume the library has been installed from NPM, but you can always replace the import location with the CDN URL. :::

    :::tip Looking for a quick guide on building components? Check out our Cheat Sheet. :::




    npm i @microsoft/fast-element

    DownloadsWeekly Downloads






    Unpacked Size

    965 kB

    Total Files


    Last publish


    • microsoft1es
    • fastsvc
    • eisenbergeffect
    • chrisdholt
    • awentzel
    • janechu
    • nirice