@publidata/utils-custom-element
Version:
Polifill to allow using HTML custom elements in Safari
22 lines (16 loc) • 712 B
Markdown
# <div align='center'><img width='80px' src="https://medias.publidata.io/production/images/images/000/044/056/original/logo.png?1577195330" ><p align="center">utils-custom-element</p></div>
This Polyfill is based on the [/custom-elements](https://github.com/ungap/custom-elements) package. However this version will only trigger the patch if we're using a Safari browser on an IOS device.
## 🛠️ Install Dependencies
Using yarn :
```bash
yarn add /utils-custom-element
````
or using NPM :
```bash
npm install /utils-custom-element
```
## 🧑🏻💻 Usage
Make sure you import before using any custom web components
```js
import "@publidata/utils-custom-element/dist";
```