Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
bee-alert
Advanced tools
页面内部针对用户行为操作的区域性提醒。根据信息类型不同提供相应的以背景颜色区分的alert。若需背景颜色加深需加dark
类。
使用单独的bee-alert包
先进行下载bee-alert包
npm install --save bee-alert
组件调用
import Alert from 'bee-alert';
React.render(<div>
<Alert />
<Alert colors="info" className="dark" closeLabel="close" />
</div>, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/build/bee-alert.css">
import "./node_modules/src/Alert.scss"
//或是
import "./node_modules/build/bee-alert.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
className | 类名 | string | |
colors | oneOf:info news success danger warning | string | warning |
controlLabel | 关闭按钮文字 | string | |
onDismiss | 关闭alert触发的方法 | func | |
dark | 显示颜色深度 | bool | false |
$ git clone https://github.com/tinper-bee/bee-alert
$ cd bee-alert
$ npm install
$ npm run dev
FAQs
alert ui component for react
The npm package bee-alert receives a total of 31 weekly downloads. As such, bee-alert popularity was classified as not popular.
We found that bee-alert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.