Socket
Socket
Sign inDemoInstall

@polkadot/vue-identicon

Package Overview
Dependencies
48
Maintainers
2
Versions
508
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @polkadot/vue-identicon

Renders an SVG picture representing an address


Version published
Weekly downloads
1.5K
increased by13.94%
Maintainers
2
Install size
9.32 MB
Created
Weekly downloads
 

Changelog

Source

3.6.5 Feb 28, 2024

Changes

  • Bump to @polkadot/util 12.6.2
  • Bump to react-native-svg 14.1.0
  • Adjust Vue peerDependency, >= 2.7 for defineComponent

Readme

Source

@polkadot/vue-identicon

A generic identity icon that can render icons based on an address.

Usage Examples

To install the component, do yarn add @polkadot/vue-identicon and then use it with import Identicon from '@polkadot/vue-identicon';

Inside a Vue component, you can now render any account with the associated icon, with associated props -

  • value - the address you wish to display
  • size (optional, defaults to 64) - the size in pixels
  • theme (optional, defaults to substrate) - the theme to use, one of
    • polkadot or
    • substrate (equivalent to jdenticon) or
    • beachball or
    • empty (displays nothing)
<template>
  <Identicon
    :size="128"
    :theme="'polkadot'"
    :value="'5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'"
  />
</template>

<script>
  import Identicon from '@polkadot/vue-identicon';

  export default {
    ...
    components: { Identicon }
    ...
  };
</script>

FAQs

Last updated on 28 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc