Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
徽章用于表示一个入口的信息提示。
标记了一个信息提示,表示有未关注的内容。
通过设置 Badge 的属性来产生不同的徽章样式,推荐顺序为:bgcolor
-> color
徽章的属性说明如下:
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
bgcolor | 设置徽章提示的背景色,可选值为任何合法的CSS颜色值 | string | undefined |
color | 设置徽章提示的字体色,可选值为任何合法的CSS颜色值 | string | undefined |
<Badge/>
因为没有子内容,会渲染为一个小红点,可以通过bgcolor
属性改为任意颜色的圆点<Badge>1</Badge>,<Badge>New</Badge>
因为传入了子内容,会展示为一个徽章提示FAQs
badge in mobile
We found that m-badge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.