Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@rmwc/checkbox
Advanced tools
Checkboxes allow the user to select multiple options from a set.
function Example() {
const [checked, setChecked] = React.useState(false);
return (
<Checkbox
label="Cookies"
checked={checked}
onChange={(evt) => setChecked(!!evt.currentTarget.checked)}
/>
);
}
<Checkbox label="Pizza" />
<Checkbox>Icecream</Checkbox>
<>
<Checkbox label="Broccoli" indeterminate />
<Checkbox label="Always On" checked />
<Checkbox label="Always Off" checked={false} />
</>
A Checkbox component.
Name | Type | Description |
---|---|---|
checked | boolean | Toggle the control on and off. |
disabled | boolean | Disables the control. |
foundationRef | Ref<MDCCheckboxFoundation<>> | Advanced: A reference to the MDCFoundation. |
id | string | A DOM ID for the toggle. |
indeterminate | boolean | Make the control indeterminate |
inputRef | Ref<HTMLInputElement<>> | A reference to the native input. |
label | ReactNode | A label for the control. |
ripple | RipplePropT | Adds a ripple effect to the component |
rootProps | HTMLProps<any> | By default, all props except className and style spread to the input. These are additional props for the root of the checkbox. |
value | string | number | string[] | The value of the control. |
FAQs
RMWC Checkbox component
We found that @rmwc/checkbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.