Fluent-UI is available as an npm package.
// with npmnpm install @fluent-ui/core// with yarnyarn add @fluent-ui/core
In order to use prebuilt SVG Fluent icons, you must first install the
// with npmnpm install @fluent-ui/icons// with yarnyarn add @fluent-ui/icons
Two Universal Module Definition (UMD) files are provided:
- one for development: https://unpkg.com/@fluent-ui/core@latest/umd/fluent-ui.development.js
- one for production: https://unpkg.com/@fluent-ui/core@latest/umd/fluent-ui.production.min.js
⚠️ Using this approach in production is discouraged though - the client has to download the entire library, regardless of which components are actually used, affecting performance and bandwidth utilization.