Gallery
darkblock-logo
Darkblock Docs
Share
Explore
Embed Darkblocks into any website

NPM

The NPM is used to embed and into any website.
The Darkblock NPM enables you to add unlockable content to any website with ease. The best way to add the Darkblock Viewer to your website is to use one of our chain-specific NPM packages.
We have built out a robust set of NPMs available across 5 different chains.

Shared Components Library

Install Darkblock's React Shared Component Library using yarn or npm
yarn add @darkblock.io/shared-components


npm i @darkblock.io/shared-components --save


Once the library is installed, import or require components into your codebase, i.e:
import {
Header,
Panel,
Player,
Stack,
utils,
widgetMachine
} from "@darkblock.io/shared-components"

Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.