
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
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.
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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.