UNPKG

@publidata/utils-custom-element

Version:

Polifill to allow using HTML custom elements in Safari

22 lines (16 loc) 712 B
# <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 [@ungap/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 @publidata/utils-custom-element ```` or using NPM : ```bash npm install @publidata/utils-custom-element ``` ## 🧑🏻‍💻 Usage Make sure you import before using any custom web components ```js import "@publidata/utils-custom-element/dist"; ```