# WJ Elements

WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web
application development. It provides a collection of encapsulated and reusable elements that can greatly increase the
efficiency and maintainability of web development projects. They offer easy integration with React and Vue.

Include WebJET Elements in your project using [CDN](#inštalácia-s-cdn) or install it using [npm](#inštalácia-s-npm).

Documentation: [elements.webjet](https://elements.webjet.sk/)

Source: [https://github.com/lencys/wj-elements](https://github.com/lencys/wj-elements)

Discord: [WJElements](https://discord.com/invite/b5DqKM997s)

## Inštalácia s npm

Using the npm package manager, you can insert Elements source files into almost any project.

Make sure you have Node.js installed on your computer before proceeding. To set up the environment for Elements, see
these instructions.

Install WebJet Elements using npm:

```shell
$ npm install wj-elements
```

## Inštalácia s CDN

Use CDN and include compiled CSS and JS files of WebJET Elements in your project.

```html
<script type="module" src="https://cdn.jsdelivr.net/npm/wj-elements@0.12.0/dist/wje-master.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/wj-elements@0.12.0/dist/light.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/wj-elements@0.12.0/dist/styles.css" />
```

The versioned CDN URLs become available after the npm release is published.

### Basic usage

```html
<wje-button>Button</wje-button>
```

## Release preparation

Version **0.12.0** keeps select footers visible in portals, fixes remote search during the initial load,
prevents scroll jumps caused by focus delegation on layout containers, and adds `::part(toggle)` for tree items.
See the [select documentation](docs/docs/api/select.md), [tree item documentation](docs/docs/api/tree-item.md),
and [changelog](https://elements.webjet.sk/reference/changelog).

The [documentation README](docs/README.md) describes the local checks, demo previews and release steps.
