
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@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 | ShirtSizes.DEFAULT | false | ShirtSizes.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 | union | 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 681 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.