
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.
react-simply-tabs
Advanced tools
Simple and small react.js tabs component
npm
npm install react-simply-tabs --save
yarn
yarn add react-simply-tabs
import React, { useState } from 'react';
import Tabs from 'react-simply-tabs';
const App = () => {
const [activeTabIndex, setActiveTabIndex] = useState(0);
return(
<Tabs
activeTabIndex={activeTabIndex}
onRequestChange={setActiveTabIndex}
controls={[
<button type="button">
Show 1
</button>,
<button type="button">
Show 2
</button>,
<button type="button">
Show 3
</button>,
]}
>
<div>1 tab</div>
<div>2 tab</div>
<div>3 tab</div>
</Tabs>
);
};
Name | Type | Default Value | Description |
---|---|---|---|
activeControlProps | object | {} | Props (valid DOM props or your custom props) for active control node. Will be merged with default control props |
activeTabIndex | number | 0 | Index of visible tab |
activeTabProps | object | {} | Props (valid DOM props or your custom props) for active tab node. Will be merged with default tab props |
children | node | null | Tabs nodes |
controls | array of nodes | [] | Array of controls nodes |
controlsWrapperProps | object | {} | DOM props for div inside which will be rendered controls |
hiddenTabProps | object | {} | Props (valid DOM props or your custom props) for hidden (not active) tab node. Will be merged with default tab props |
onRequestChange | function | Function that will be run when the activeTabIndex is requested to be changed (either by clicking on control) (required) | |
renderOnlyActiveTab | boolean | false | If true hidden tabs will not be rendered |
tabsWrapperProps | object | {} | DOM props for div inside which will be rendered tabs |
wrapperProps | object | {} | DOM props for div inside which will be rendered tabs && controls |
FAQs
Simple and small react.js tabs component
The npm package react-simply-tabs receives a total of 5 weekly downloads. As such, react-simply-tabs popularity was classified as not popular.
We found that react-simply-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.