Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@atul15r/react-tabs
Advanced tools
React-Tabs is an animated tab navigation component which is designed for react app.
# If you use npm:
npm i @atul15r/react-tabs
# If you use yarn:
yarn add @atul15r/react-tabs
ES6 Usage
import { Collapsible } from '@atul15r/react-tabs';
Commonjs Usage
var Collapsible = require('@atul15r/react-tabs');
<Tabs items={items} />
icon component can be HTMLElement (i.e. svg/image/div/section ...etc)/React-Component
import React from 'react';
import { Tabs } from '@atul15r/react-tabs';
const tabs = [
{
title: "TypeScript",
{
title: "JavaScript",
},
];
const App = () => {
return (
<Tabs
tabs={tabs}
tabStyle={{
background: `#fff`,
font-weight: 500,
color: "#333"
}}
/>
);
};
export default App;
name | type | required | default | description |
---|---|---|---|---|
tabs | array | true | [] | it takes an array of object { title: string | ReactNode }[] |
tabsClassName | string | false | undefined | add any custom class you want |
tabsStyle | object | false | undefined | wrapperStyle= {{ background:"#ccc", color:"#999", ...etc }} |
tabClassName | string | false | undefined | add any custom class you want |
tabStyle | object | false | undefined | itemStyle= {{ padding:4, }} |
onChange | function | false | undefined | onChange={(tabIndex)=>setCurrentTab(tabIndex)} |
FAQs
React Tab Navigations Component
The npm package @atul15r/react-tabs receives a total of 18 weekly downloads. As such, @atul15r/react-tabs popularity was classified as not popular.
We found that @atul15r/react-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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.