How to use @polkadot/ui-shared - 5 common examples

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 / reactnative-identicon / src / icons / Polkadot.tsx View on Github external
export default function Identicon ({ address, sixPoint, size }: Props): React.ReactElement {
  return (
    
  );
}
github polkadot-js / ui / packages / vue-identicon / src / icons / Polkadot.ts View on Github external
createSvgHtml: function (): void {
      const circles = generateIcon(this.address).map(({ cx, cy, fill, r }): string =>
        `
github polkadot-js / ui / packages / react-identicon / src / icons / Polkadot.tsx View on Github external
public render (): React.ReactNode {
    const { address, className, sixPoint, size, style } = this.props;

    return (
      <div style="{style}">
        <svg viewBox="0 0 64 64" height="{size}" width="{size}" name="{address}" id="{address}">
          {generateIcon(address, sixPoint).map(this.renderCircle)}
        </svg>
      </div>
    );
  }
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 6 days ago

Package Health Score

87 / 100
Full package analysis

Similar packages