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.
This package was developed based on the Material UI Tabs component. See example.
yarn add mui-tabs
import * as React from 'react'
import { Tab, Tabs } from 'mui-tabs'
import 'mui-tabs/styles/main.css'
// or import 'mui-tabs/styles/scss/main.scss'
const App = () => {
const [value, setValue] = React.useState(1)
return (
<Tabs value={value} onChange={(value) => setValue(value)}>
<Tab value={1} label="Tab 1" />
<Tab value={2} label="Tab 2" />
</Tabs>
)
}
You need to install the react-transition-group package.
yarn add react-transition-group
Example
import * as React from 'react'
import { Tab, Tabs } from 'mui-tabs'
import RippleButton from 'mui-tabs/RippleButton'
import 'mui-tabs/styles/main.css'
import 'mui-tabs/styles/ripple.css'
// or import 'mui-tabs/styles/all.css'
// or import 'mui-tabs/styles/scss/all.scss'
const App = () => {
const [value, setValue] = React.useState(1)
return (
<Tabs
value={value}
variant="scrollable"
scrollButtons={true}
onChange={(value) => setValue(value)}
TabComponent={RippleButton}
ScrollButtonComponent={RippleButton}
allowScrollButtonsMobile={true}
>
<Tab value={1} label="Tab 1" />
<Tab value={2} label="Tab 2" />
<Tab value={3} label="Tab 3" />
<Tab value={4} label="Tab 4" />
<Tab value={5} label="Tab 5" />
<Tab value={6} label="Tab 6" />
<Tab value={7} label="Tab 7" />
</Tabs>
)
}
This project is licensed under the terms of the MIT license.
FAQs
Material UI tabs for React and React Native projects.
The npm package mui-tabs receives a total of 51 weekly downloads. As such, mui-tabs popularity was classified as not popular.
We found that mui-tabs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.