@exadel/esl
v6.1.0
Published
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
Readme
Exadel Smart Library
Exadel Smart Library (ESL) is an open-source lightweight and flexible UI component library based on web components. Increase your site’s performance by building UX models with custom components from our library. The ESL web UI components library is compatible with any framework, which makes ESL ideal for projects regardless of their tech stack.
Table of Contents
Overview
Exadel Smart Library, or ESL for short, is a free web UI components library that reduces routine tasks and lets you efficiently create websites with multiple web components at hand. When you’re deciding which is the best UI component library for your site, keep in mind that it should be compatible with other libraries and frameworks — like ESL is!
ESL UI component library allows you to access a toolkit full of reusable components. You can utilize these web components to complement projects or build your infrastructure from the ground up using ESL alone. Our web UI components library is high-quality, so the only thing you’ll have to focus on is applying styles to meet your project needs.
ESL is based solely on Web API and ECMAScript 6 features, which let our web UI components library work well across all modern browsers such as Firefox, Chrome, Safari, Opera, and Edge.
Library Structure
While building the UI component library, we included components, form components, and utilities that solve complex project architecture problems and comply with the DRY principle. See the rundown of web components and read the specs.
Library Core
With our UI component library, you get flexible syntax sugar meant for building on top of basic components and controlling their life cycle.
Components
Our HTML UI component library provides you with all the elements you’ll need to construct UX modules with excellent performance.
ESL A11yGroup (beta)
ESL Alert
ESL Animate
ESL Carousel
ESL Footnotes
ESL Image Utils
ESL Image (Legacy)
ESL Media
ESL Panel
ESL Panel Group
ESL Popup (beta)
ESL Related Target
ESL Scrollbar
ESL Select (beta)
ESL Select List (beta)
ESL Share
ESL Tab and Tabs
ESL Toggleable
ESL Trigger
Installation Guide
Preconditions:
- Make sure you have all needed polyfills to support browsers from your browser-support list. See Browser support & Polyfills for details.
- Use a bundler to build your project. Currently, only ES6 modules are available for consumption.
Install esl npm dependency:
npm i @exadel/esl --saveImport Components/Modules you need:
import '@exadel/esl/modules/esl-component/core';coremodule entry usually represents main part of the module;- include optional sub-features directly. See component's documentation for details.
import '@exadel/esl/modules/esl-media/providers/iframe-provider';- Some modules contain cumulative
allentries. - Styles are distributed in two versions:
- 'ready to use'
core.cssorcore.less - mixin version
core.mixin.lessfor custom tagname definition
- 'ready to use'
[Optional] Setup environment configuration, e.g. custom screen breakpoints:
import {ESLScreenBreakpoints} from '@exadel/esl/modules/esl-media-query/core'; // define XS screen breakpoint for up to 800px screen width ESLScreenBreakpoints.addCustomBreakpoint('XS', 1, 800);Register web components via
registerstatic method call:ESLMedia.register();You can pass custom tag name to 'register' function, but use this option only in an exceptional situation.
Exadel, Inc.

