
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
bee-switch
Advanced tools
react bee-switch component for tinper-bee
先进行下载switch包
npm install --save bee-switch
组件调用
import { Switch } from 'bee-switch';
React.render(<div>
<Switch />
</div>, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/build/bee-switch.css">
import "./node_modules/src/Switch.scss"
//或是
import "./node_modules/build/bee-switch.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
checked | 指定当前是否选中 | Boolean | false |
defaultChecked | 初始是否选中 | Boolean | false |
onChangeHandler | 变化时回调函数,自定义参照demo | Function(checked:Boolean) | |
checkedChildren | 选中时的内容 | React | Node |
unCheckedChildren | 非选中时的内容 | React | Node |
size | 开关大小,可选值:'' small | String | '' |
$ git clone https://github.com/tinper-bee/bee-switch
$ cd bee-switch
$ npm install
$ npm run dev
FAQs
switch ui component for react
The npm package bee-switch receives a total of 46 weekly downloads. As such, bee-switch popularity was classified as not popular.
We found that bee-switch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.