mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-21 23:47:58 +00:00
d1cd13072f
- Updated all package references - Fixed react-identicon and related packages - Version 3.16.8
940 B
940 B
@pezkuwi/vue-identicon
A generic identity icon that can render icons based on an address.
Usage Examples
To install the component, do yarn add @pezkuwi/vue-identicon and then use it with import Identicon from '@pezkuwi/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 displaysize(optional, defaults to64) - the size in pixelstheme(optional, defaults tosubstrate) - the theme to use, one ofpolkadotorsubstrate(equivalent tojdenticon) orbeachballorempty(displays nothing)
<template>
<Identicon
:size="128"
:theme="'polkadot'"
:value="'5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'"
/>
</template>
<script>
import Identicon from '@pezkuwi/vue-identicon';
export default {
...
components: { Identicon }
...
};
</script>