Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@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 | undefined | false | true | Toggle the control on and off. |
disabled | undefined | false | true | Disables the control. |
foundationRef | React.Ref<MDCCheckboxFoundation> | Advanced: A reference to the MDCFoundation. |
id | undefined | string | A DOM ID for the toggle. |
indeterminate | undefined | false | true | Make the control indeterminate |
inputRef | React.Ref<HTMLInputElement> | A reference to the native input. |
label | React.ReactNode | A label for the control. |
ripple | RipplePropT | Adds a ripple effect to the component |
rootProps | React.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. |
6.1.4 (2020-09-11)
FAQs
RMWC Checkbox component
The npm package @rmwc/checkbox receives a total of 4,523 weekly downloads. As such, @rmwc/checkbox popularity was classified as popular.
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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.