How to use the @polkadot/ui-shared/beachballIcon function in @polkadot/ui-shared

To help you get started, we’ve selected a few @polkadot/ui-shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polkadot-js / ui / packages / vue-identicon / src / icons / Beachball.ts View on Github external
createHtml: function (): void {
      this.html = generate(this.address, this.size).outerHTML;
    }
  }
github polkadot-js / ui / packages / react-identicon / src / icons / Beachball.tsx View on Github external
private appendIcon = (node: Element | null): void => {
    const { address, size } = this.props;

    if (node) {
      node.appendChild(
        generate(address, size)
      );
    }
  }
}

@polkadot/ui-shared

Shared logic that is usable accross all frameworks-specific areas

Apache-2.0
Latest version published 5 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages