@code-cabana/elements
v1.7.6
Published
Custom elements designed for use with no-code platforms
Downloads
42
Readme
CC · Elements
Custom elements designed for use with no-code platforms :palm_tree:
Usage
Browser
For usage via <script>
tags in no/low-code platforms like Wordpress, Squarespace, Wix, Webflow etc, refer to codecabana.com.au/elements
React / NextJS
npm install @code-cabana/elements
// _app.tsx
import {
applyPolyfills,
defineCustomElements,
} from "@code-cabana/elements/loader";
function MyApp(...) {
useEffect(() => {
applyPolyfills().then(() => {
defineCustomElements(window);
});
}, []);
return ...;
}
export default MyApp;