Socket
Socket
Sign inDemoInstall

@atul15r/react-tabs

Package Overview
Dependencies
6
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @atul15r/react-tabs

React Tab Navigations Component


Version published
Weekly downloads
1
Maintainers
1
Install size
70.8 kB
Created
Weekly downloads
 

Readme

Source

React Tabs

Download

React-Tabs is an animated tab navigation component which is designed for react app.

Live Demo

Alt text

Installation

 # If you use npm:
 npm i @atul15r/react-tabs

 # If you use yarn:
 yarn add @atul15r/react-tabs


 ES6 Usage
 import { Tabs } from '@atul15r/react-tabs';

 Commonjs Usage
 var Tabs = require('@atul15r/react-tabs');

Quick Start

<Tabs tabs={tabs} />

Usage With Custom Styles


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;

Props

nametyperequireddefaultdescription
tabsarraytrue[]it takes an array of object { title: string | ReactNode }[]
tabsClassNamestringfalseundefinedadd any custom class you want
tabsStyleobjectfalseundefinedwrapperStyle= {{ background:"#ccc", color:"#999", ...etc }}
tabClassNamestringfalseundefinedadd any custom class you want
tabStyleobjectfalseundefined itemStyle= {{ padding:4, }}
borderStyleobjectfalseundefinedborderStyle= {{ background:#6b6b6b, }}
borderClassNamestringfalseundefinedadd any custom class you want
onChangefunctionfalseundefined onChange={(tabIndex)=>setCurrentTab(tabIndex)}

Keywords

FAQs

Last updated on 12 Sep 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc