Installation Guide
-
Preconditions:
Make sure you have all the needed polyfills to support browsers from your browser-support list.- See Browser support & Polyfills for details.
- Use bundler to build your project. Currently, only ESL modules are available for consumption.
-
Install esl npm dependency:
npm i @exadel/esl --save
-
Import Components/Modules you need.
- core module entry usually represents main part of the module
import '@exadel/esl/modules/esl-component/core';
- include optional sub-features directly. See component's documentation for details.
import '@exadel/esl/modules/esl-media/providers/iframe-provider';
- some modules contain cumulative
all.js
entries.
-
Styles are distributed in two versions:
- 'ready to use'
core.css
orcore.less
- mixin version core.mixin.less for custom tag name definition
- 'ready to use'
-
[Optional] Setup environment configuration, e.g. custom screen breakpoints.
import {ESLMediaBreakpoints} from '@exadel/esl/modules/esl-media-query/core'; // define XS screen breakpoint for up to 800px screen width ESLMediaBreakpoints.addCustomBreakpoint('XS', 1, 800);
-
Register components via register static method call
ESLImage.register();
You can pass custom tags name to the 'register' function, but use this option only in an exceptional situation.