vue-blockies

A Vue3 wrapper for ethereum-blockies
1,315
Install
npm install vue-blockies
Latest Version:1.0.0
Vue:3
License:MIT
Last Updated:Jun 25, 2021
Links: npm
Maintainer: herrsiering

vue-blockies

This is a simple Vue3 wrapper component for ethereum-blockies.

Installation

yarn add vue-blockies

or

npm i vue-blockies

Usage

Import the component, make it known to the component you're using it in.

import VueBlockies from vue-blockies

export default {
  name: 'MyAwesomeComponent',

  components: {
    VueBlockies,
  },
  …
}

In the template, just™ use it.

<template>
  <div>
    …
    <VueBlockies />
    …
  </div>
</template>

Props

Prop Type Default value Description
seed String "randomString" Seed used to generate icon data
color String "#dfe" To manually specify the icon color
bgcolor String #aaa Choose a different background color
size String 8 Width/height of the icon in blocks
scale Number 4 Width/height of each block in pixels.
spotColor String #000 Each pixel has a 13% chance of being of a third color. Set to -1 to disable it. These "spots" create structures that look like eyes, mouths and noses.

Full example

<template>
  <div>
    …
    <VueBlockies
      seed="0x4f5F6D3c7e8aDef6be8e51288F098d440bAc12ec"
      color="#09e"
      bgcolor="#f3f"
      :size="16"
      :scale="2"
      spot-color="#666"
    />
    …
  </div>
</template>

Related Packages

@rabby-wallet/eth-coinbase-keyring

A keyring that uses the Coinbase Wallet SDK to sign transactions

8,894
xhvalidate

common toolkit

820
solidity-ide

A light and easy IDE for Solidity smart contract development.

333 92
web3-token

Web3 Token is a new way to authenticate users in hybrid dApps using signed messa...

81,222 368
vue3-jazzicon

Vue component for danfinlay/jazzicon

14,143 2

Version History

Version Released Vue License
1.0.0 ^3.0.5 MIT
0.0.3 ^3.0.5 MIT
0.0.2 ^3.0.5 MIT
0.0.1 ^3.0.5