/dfn-components

Primary LanguageTypeScriptApache License 2.0Apache-2.0

DFN Components Library

This is a library of web components to share Dfinity-customized UI components for a variety of Internet Computer applications

What's inside?

This library contains the following components:

How to use

Install

npm install @dfinity/dfn-components

Import

import { defineElement as defineLoginButton } '@dfinity/ii-login-button';
import { defineElement as defineCandidUI } '@dfinity/candid-ui';

You can also import the components directly from the auto.js file:

import "@dfinity/ii-login-button/auto.js";
import "@dfinity/candid-ui/auto.js";

Use

<ii-login-button></ii-login-button>

<candid-ui></candid-ui>

See the READMEs of each component for more details.