
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
@arterial/checkbox
Advanced tools
Another React Material Checkbox
npm install @arterial/checkbox
@use "@material/checkbox/index.scss" as checkbox;
@include checkbox.core-styles;
import '@material/checkbox/dist/mdc.checkbox.css';
import {Checkbox} from '@arterial/checkbox';
function Checked() {
const [checked, setChecked] = useState(true);
return (
<Checkbox
checked={checked}
id="checkbox-checked"
onChange={e => setChecked(e.target.checked)}
/>
);
}
function Unchecked() {
const [checked, setChecked] = useState(false);
return (
<Checkbox
checked={checked}
id="checkbox-unchecked"
onChange={e => setChecked(e.target.checked)}
/>
);
}
function Indeterminate() {
const [checked, setChecked] = useState(false);
const [indeterminate, setIndeterminate] = useState(true);
return (
<Checkbox
checked={checked}
id="checkbox-indeterminate"
indeterminate={indeterminate}
onChange={e => {
setChecked(e.target.checked);
setIndeterminate(e.target.indeterminate);
}}
/>
);
}
function Label() {
const [checked, setChecked] = useState(true);
return (
<Checkbox
checked={checked}
id="checkbox-label"
label="Checkbox"
onChange={e => setChecked(e.target.checked)}
/>
);
}
function AlignEnd() {
const [checked, setChecked] = useState(true);
return (
<Checkbox
alignEnd
checked={checked}
id="checkbox-align-end"
label="Checkbox"
onChange={e => setChecked(e.target.checked)}
/>
);
}
<Checkbox
disabled
id="checkbox-disabled"
label="Checkbox"
onChange={() => {}}
/>
Name | Type | Description |
---|---|---|
alignEnd | boolean | Aligns root element on the right side of the label. |
checked | boolean | Indicates whether the element is checked. |
className | string | Classes to be applied to the root element. |
disabled | boolean | Indicates whether the element is disabled. |
id | string | Id of the element. |
indeterminate | bool | Indicates whether the checkbox is indeterminate. |
label | string | Text to be displayed next to the root element. |
onChange | function | Change event handler. |
ripple | boolean | Enables ripple within root element. Defaults to true. |
style | object | Styles to be applied to the root element. |
value | string | Value of input. |
FAQs
Another React Material Checkbox
The npm package @arterial/checkbox receives a total of 5 weekly downloads. As such, @arterial/checkbox popularity was classified as not popular.
We found that @arterial/checkbox 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
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.