Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@paprika/button-group
Advanced tools
ButtonGroup component is a segmented group of toggle buttons.
yarn add @paprika/button-group
or with npm:
npm install @paprika/button-group
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | The toggle buttons in the group. |
hasIcons | bool | false | false | To show the icons used for selected / not selected. |
isDisabled | bool | false | false | If the entire button group is disabled. |
isFullWidth | bool | false | false | If the width of the button group should stretch to fit its parent container (100%). |
isMulti | bool | false | false | If multiple simultaneous selections are allowed. |
isSemantic | bool | false | true | If it will be rendered as a button element. If false, a span will be rendered via an accessible RawButton. |
onChange | func | false | () => {} | Callback to be executed when any button item is clicked or activated by keyboard. It will return an array of the selected items' "value" properties. |
size | [ ButtonGroup.types.size.SMALL, ButtonGroup.types.size.MEDIUM, ButtonGroup.types.size.LARGE] | false | ButtonGroup.types.size.MEDIUM | Size of the buttons (height, font size, etc). |
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Content label of the button to be displayed. |
defaultIsActive | bool | false | false | If the item is active or on selected state |
value | [string,number] | true | - | Unique key to represent the selected value. |
import ButtonGroup from "@paprika/button-group";
const yourComponent = () => {
const handleChange = selectedValues => {
// do something with array of selected values
};
return (
<ButtonGroup onChange={handleChange}>
<ButtonGroup.Item value={1} defaultIsSelected>
One
</ButtonGroup.Item>
<ButtonGroup.Item value={2}>Two</ButtonGroup.Item>
<ButtonGroup.Item value={3}>Three</ButtonGroup.Item>
</ButtonGroup>
);
};
FAQs
ButtonGroup component is a segmented group of toggle buttons.
The npm package @paprika/button-group receives a total of 604 weekly downloads. As such, @paprika/button-group popularity was classified as not popular.
We found that @paprika/button-group demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.