Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opensquare-network/polkadot-react-identicon
https://github.com/opensquare-network/polkadot-react-identicon
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opensquare-network/polkadot-react-identicon
- Owner: opensquare-network
- Created: 2022-02-21T01:46:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T06:29:13.000Z (over 1 year ago)
- Last Synced: 2024-11-11T03:30:16.496Z (2 months ago)
- Language: JavaScript
- Size: 1.83 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Polkadot-react-identicon
This project provides a React UI component which takes a valid `Polkadot` address and generates a svg image.
## Usage
1. Get the package
`yarn add @osn/polkadot-react-identicon`
2. Import as a ES mudule
`import Identicon from "@osn/polkadot-react-identicon"`
3. Apply in a react based project
``## Develop
To stat a demo, get this project, run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.To test importation or deploy to npmjs.com, run:
### `yarn build`
Builds the component in `dist` directory, use `yarn link` under `react-idenicon` and then `yarn link react-idenicon` under the project wants to use this.