@code-cabana/elements
TypeScript icon, indicating that this package has built-in type declarations

1.7.6 • Public • Published

CC · Elements

Custom elements designed for use with no-code platforms 🌴

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;

Readme

Keywords

none

Package Sidebar

Install

npm i @code-cabana/elements

Weekly Downloads

1

Version

1.7.6

License

MIT

Unpacked Size

813 kB

Total Files

98

Last publish

Collaborators

  • lokimckay