Options
All
  • Public
  • Public/Protected
  • All
Menu

@mcaptcha/svelte-glue

Svelte JS Glue library

Embed mCaptcha widget in webpages built using Svelte Js

NPM JavaScript Style Guide 0.1.0 Build) codecov

Install

npm install --save @mcaptcha/svelte-glue

Usage

import React, { Component, WidgetConfig } from 'react';

import MyComponent from 'svelte-glue';
import 'svelte-glue/dist/index.css';

class Example extends Component {
render() {
const siteKey: SiteKey = {
key: 'randomSiteKeyAsDisplayedInAdminPanel'
};
const config: WidgetConfig = { siteKey };

return <MyComponent {...config} />;
}
}

Generated using TypeDoc