Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@equinor/fusion-react-checkbox
Advanced tools
Readme
#@equinor/fusion-react-checkbox
Installation
npm install @equinor/fusion-react-checkbox
Example Usage
const MyComponent = () => {
const [checked, setChecked] = useState(undefined);
const onInput = useCallback((e) => {
setChecked(!e.target.checked);
}, [setChecked] );
return (
<div>
<Checkbox value={checked} onInput={onInput} label="Example" />
<p>Current State: <pre>{JSON.stringify({checked})}</pre></p>
</div>
);
}
<Checkbox value='value' checked/>
Name | Type | Default | Description |
---|---|---|---|
checked | boolean | false | Whether the checkbox is checked. |
indeterminate | boolean | false | When a checkbox is the parent of a set of child checkboxes, the indeterminate state is used on the parent to indicate that some but not all of its children are checked. |
disabled | boolean | false | When true , the checkbox cannot be interacted with, and renders in muted colors. |
value | string | '' | The value that will be included if the checkbox is submitted in a form. |
reducedTouchTarget | boolean | false | When true , the checkbox remove padding for touchscreens and increase density. Note, the checkbox will no longer meet accessibility guidelines for touch. |
Event Name | Target | Detail | Description |
---|---|---|---|
change | fwc-checkbox | {} | Fired when the user modifies the checkbox checked or indeterminate states from an input device interaction. Note that, like native <input> , the change event is not fired when the checked or indeterminate properties are set from JavaScript. |
FAQs
component for displaying checkbox
The npm package @equinor/fusion-react-checkbox receives a total of 579 weekly downloads. As such, @equinor/fusion-react-checkbox popularity was classified as not popular.
We found that @equinor/fusion-react-checkbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.