Set of ready-to-use web components.

The use of widgets is practically plug-n-play, no development is required from the tech team, only configuration.

Setup

Add the ARN components package to the dependencies of your package.json. As this packages relies on ARN Client, you’ll need to install it too. For instance:

{
  "dependencies": {
    **"@arianee/arn-client": "^2.2.18",
    "@arianee/arn-components": "^2.2.18",
    "@arianee/arn-types": "^2.2.18",**
    "@wagmi/core": "1.0.6"
****  }
}

As ARN Components call an ARN Client under the hood, you’ll need to make sure one is available in the global scope. See the ARN Client user guide to do so.

Usage

Import the ARN Components package to make sure its code will be packaged as part as your application’s code.

import '@arianee/arn-components';

You can then use ARN Components tags in your HTML.

If you’re using a framework to develop your web app, you might need to set up extra configuration:

For a set of examples with various tech stacks, check out the arn-example repository.

Then you can use the following ARN custom elements in your HTML pages:

arn-if

arn-if-connected

arn-connect

arn-if-has

arn-if-is