Overview:
The Europa Component Library (ECL) is a library of components that can be used to build websites for the European Commission and European Union. It contains a variety of components, each with documentation, demos, and code examples. The library is designed to be compatible with node version 16.14.0 and provides various presets for different needs. Additionally, it is important to note that the library uses Pikaday, which requires the use of moment.js. Help and support for using the ECL can be obtained from COMM Europa Management.
Features:
- Library of components applicable to European Commission and European Union websites
- Components accompanied by documentation, demos, and code examples
- Compatibility with node version 16.14.0
- Various presets available to accommodate different needs
- Uses Pikaday, which requires the use of moment.js
- Support available from COMM Europa Management
Installation:
To install the Europa Component Library (ECL), follow these steps:
- Ensure that you have node version 16.14.0 installed (you can use
nvm use
to switch to this version). - Choose the preset of your choice from the available options.
- Download the latest release of the chosen preset.
- Install the preset using npm or yarn. For example, you can use
npm install @ecl/preset-ec
oryarn add @ecl/preset-ec
. - Alternatively, you can use the CDN to access the assets. The CDN URL format is
https://cdn{1,2,3 or 4}.fpfis.tech.ec.europa.eu/ecl/{tag}/{system}/{path/to/the/asset}
.
Note: If you are using ECL and require Pikaday, remember to load or bundle moment.js in your application or website accordingly.
Summary:
The Europa Component Library (ECL) is a valuable resource for building websites for the European Commission and European Union. It provides a wide range of components along with documentation, demos, and code examples. The library is easy to install and offers different presets to meet diverse needs. However, it’s important to note that ECL uses Pikaday, which requires the use of moment.js. Support for ECL can be obtained from COMM Europa Management.