Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@paprika/button-group
Advanced tools
Readme
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 828 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.