
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
rax-checkbox
Advanced tools
CheckBox 是基础的选择框,选择框用图片实现,支持用户使用自己的图片进行替换
$ npm install rax-checkbox --save
import CheckBox from "rax-checkbox";
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
checked | Boolean | 选中状态 | |
checkedImage | String | 选中图片 | |
uncheckedImage | String | 非选中图片 | |
containerStyle | Object | 选择框容器样式 | |
checkboxStyle | Object | 选择框图片样式 | |
onChange | Function | 选择事件 |
// demo
/* eslint-disable import/no-extraneous-dependencies */
import { createElement, render, useRef, useEffect } from 'rax';
import DU from 'driver-universal';
import View from 'rax-view';
import CheckBox from 'rax-checkbox';
const App = () => {
const checkboxRef = useRef(null);
useEffect(() => {
console.log(checkboxRef);
});
return <View ><CheckBox ref={checkboxRef} /></View>;
};
render(<App />, document.body, {
driver: DU
});
FAQs
Checkbox component for Rax.
The npm package rax-checkbox receives a total of 5 weekly downloads. As such, rax-checkbox popularity was classified as not popular.
We found that rax-checkbox demonstrated a not healthy version release cadence and project activity because the last version was released 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.