Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atul15r/react-tabs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atul15r/react-tabs

React Tab Navigations Component

  • 0.0.1
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by166.67%
Maintainers
1
Weekly downloads
 
Created
Source

React Tabs

React TypeScript

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 { Collapsible } from '@atul15r/react-tabs';

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

Quick Start

Alt text

<Tabs items={items} />

Usage With Custom Styles

icon component can be HTMLElement (i.e. svg/image/div/section ...etc)/React-Component

Alt text


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, }}
onChangefunctionfalseundefined onChange={(tabIndex)=>setCurrentTab(tabIndex)}

Keywords

FAQs

Package last updated on 07 Aug 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc