Skip to content

dfinity/dfn-components

Repository files navigation

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.