Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@api3/logos
Advanced tools
Changelog
0.1.11
8f98a89: Some changes have been made to the logos
.
| Logo | Name | Category | | ------------------------------------------------------------- | --------- | -------- | | <img src="./raw/chains/Chain1891.svg" width="36" alt=""> | 1891 | chain | | <img src="./raw/chains/Chain245022934.svg" width="36" alt=""> | 245022934 | chain | | <img src="./raw/chains/Chain245022926.svg" width="36" alt=""> | 245022926 | chain | | <img src="./raw/chains/Chain111.svg" width="36" alt=""> | 111 | chain |
Readme
pnpm add @api3/logos
npm i @api3/logos
yarn add @api3/logos
import { ChainLogo, SymbolLogo, ApiProviderLogo } from '@api3/logos';
<div>
<img src={ChainLogo('43114')} width={50} height={50} alt="43114" />
<img src={SymbolLogo('BTC')} width={50} height={50} alt="BTC" />
<img src={ApiProviderLogo('nodary')} width={50} height={50} alt="nodary" />
</div>;
<template>
<div>
<img src={ChainLogo('43114')} width={50} height={50} alt='43114' />
<img src={SymbolLogo('BTC')} width={50} height={50} alt='BTC' />
<img src={ApiProviderLogo('nodary')} width={50} height={50} alt='nodary' />
</div>
</template>
<script>
import { ChainLogo, SymbolLogo, ApiProviderLogo } from '@api3/logos';
export default {
...
methods: {
getSymbolLogo(symbol) {
return SymbolLogo(symbol);
},
getChainLogo(chainId) {
return ChainLogo(chainId);
},
getApiProviderLogo(apiProvider) {
return ApiProviderLogo(apiProvider);
},
}
...
}
</script>
light
prop is optional and defaults to false
(dark theme). light = true
will return the light theme logo.
Prop | Type | Description |
---|---|---|
id | string | Chain id |
light | boolean | Light theme |
Prop | Type | Description |
---|---|---|
id | string | Symbol id |
light | boolean | Light theme |
Prop | Type | Description |
---|---|---|
id | string | ApiProvider |
light | boolean | Light theme |
Live demo at https://api3dao.github.io/logos
FAQs
## Installation
The npm package @api3/logos receives a total of 425 weekly downloads. As such, @api3/logos popularity was classified as not popular.
We found that @api3/logos demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.