![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@engie-group/fluid-design-system-angular
Advanced tools
Install the package inside your application:
npm install @engie-group/fluid-design-system-angular
<!--Not necessary If you already import Lato and don't use Material icons-->
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Lato:300,400,700,900&display=swap" rel="stylesheet"/>
// In angular.json in build.styles of your project you'll need to import the fluid css variables and the fluid icons (ONLY if you're planning on using them)
"styles": [
"node_modules/@engie-group/fluid-design-tokens/lib/css/tokens.css",
// Only if you want to use engie icons
"node_modules/@engie-group/fluid-design-system/lib/components/icon/fluid.css"
],
In Fluid angular lib some types are generated using tokens, to get to these tokens we import a json file tokens.json
provided by @engie-group/fluid-design-tokens
. Since we rely on these import you'll need add json imports support in your tsconfig
file.
You'll need to add the following in your tsconfig.json
:
"resolveJsonModule": true
in the compilerOptions
section.
In the angular module where you need to use a fluid component (usually in src/app.module.ts
, you'll need to import
the FluidModule
import {FluidModule} from '@engie-group/fluid-design-system-angular';
@NgModule({
declarations: [
],
imports: [
FluidModule
],
exports: [
],
providers: [
]
})
export class MODULENAME {
}
Create a component folder inside src/components:
src/components - / component-name.component.html - / component-name.component.scss / component-name.component.ts / component-name.component.spec.ts -
Update fluid.module.ts module by adding new component in declarations & exports arrays
Update src/public-api.ts by adding component import/export
Create a component folder inside fluid-doc-angular package: src/stories/component-name/component-name.stories.tsx
Name | Chrome Mac 86 > | Firefox | Safari | IOS Safari | Chrome android |
---|---|---|---|---|---|
Button | ✅ | ✅ | |||
Toggle | ✅ | ✅ | |||
Checkbox | ✅ | ✅ | |||
Spinner | ✅ | ✅ | |||
Icon | ✅ | ✅ | |||
Progress | ✅ | ✅ | |||
Radio | ✅ | ✅ | |||
Link | ✅ | ✅ |
Name | keyboard navigation | Aria attribute |
---|---|---|
Button | ✅ | |
Toggle | ✅ | ✅ |
Checkbox | ✅ | ✅ |
Spinner | ✅ | |
Icon | ✅ | ✅ |
Progress | ✅ | ✅ |
Radio | ✅ | ✅ |
Link | ✅ | ✅ |
You can check our state of development on our Confluence page
FAQs
Fluid Design System Angular
The npm package @engie-group/fluid-design-system-angular receives a total of 63 weekly downloads. As such, @engie-group/fluid-design-system-angular popularity was classified as not popular.
We found that @engie-group/fluid-design-system-angular 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.