# @polkadot/ui-identicon

> Renders an SVG picture representing an address

Latest version **0.41.1** (published 2019-06-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @polkadot/ui-identicon
pnpm add @polkadot/ui-identicon
yarn add @polkadot/ui-identicon
bun add @polkadot/ui-identicon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.41.1 |
| Published | 2019-06-14 |
| First published | 2018-03-14 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 50.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jaco Greeff |
| Maintainers | jacogr |

## Links

- npm: https://www.npmjs.com/package/@polkadot/ui-identicon
- npm.io page: https://npm.io/package/@polkadot/ui-identicon

## Dependencies (8)

- [color](https://npm.io/package/color.md) ^3.1.2
- [jdenticon](https://npm.io/package/jdenticon.md) ^2.1.1
- [@types/color](https://npm.io/package/@types/color.md) ^3.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.5
- [styled-components](https://npm.io/package/styled-components.md) ^4.3.1
- [@polkadot/ui-settings](https://npm.io/package/@polkadot/ui-settings.md) ^0.41.1
- [react-copy-to-clipboard](https://npm.io/package/react-copy-to-clipboard.md) ^5.0.1
- [@types/react-copy-to-clipboard](https://npm.io/package/@types/react-copy-to-clipboard.md) ^4.2.6

## Recent versions

- 0.41.1 (latest) — 2019-06-14
- 0.42.0-beta.18 (beta) — 2019-07-29
- 0.42.0-beta.17 — 2019-07-29
- 0.42.0-beta.16 — 2019-07-20
- 0.42.0-beta.15 — 2019-07-19
- 0.42.0-beta.14 — 2019-07-19
- 0.42.0-beta.13 — 2019-07-17
- 0.42.0-beta.12 — 2019-07-17
- 0.42.0-beta.11 — 2019-07-16
- 0.42.0-beta.10 — 2019-07-16
- 0.42.0-beta.9 — 2019-07-14
- 0.42.0-beta.8 — 2019-07-12
- 0.42.0-beta.7 — 2019-07-11
- 0.42.0-beta.6 — 2019-07-11
- 0.42.0-beta.5 — 2019-07-10
- … 324 more at https://npm.io/package/@polkadot/ui-identicon/versions

## README

# @polkadot/ui-identicon

A generic identity icon that can render icons based on the theme, be it Substrate or Polkadot

## Usage Examples

To install the component, do `yarn add @polkadot/ui-identicon`

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

```javascript
import Identicon from '@polkadot/ui-identicon';

...
render () {
  // address is an ss58-encoded address or publicKey (hex string or Uint8Array)
  const { address } = this.props;
  // size (optional) is a number, indicating the size (in pixels, 64 as default)
  const size = 32;
  // theme (optional), depicts the type of icon, one of
  // 'polkadot', 'substrate' (default), 'beachball' or 'jdenticon'
  const theme = 'polkadot';

  // standard className & style props are also available
  return (
    <Identicon
      value={address}
      size={size}
      theme={theme}
    />
  );
}
...
```

---
_Source: https://npm.io/package/@polkadot/ui-identicon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
