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

react-tab-component-pure-js

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tab-component-pure-js - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

14

dist/index.d.ts
import React from "react";
interface TabProps {
tabList: {
tabList?: {
name: string;
Component: React.FC;
}[];
currentTabIndex: number;
tabClickHandler: (index: number) => void;
selectTabClass: string;
unselectedTabClass: string;
tabContainerClass: string;
tabOptionsClass: string;
currentTabIndex?: number;
tabClickHandler?: (index: number) => void;
selectTabClass?: string;
unselectedTabClass?: string;
tabContainerClass?: string;
tabOptionsClass?: string;
}
export declare const Tab: React.FC<TabProps>;
export {};

@@ -19,9 +19,16 @@ "use strict";

var Tab = function Tab(_a) {
var tabList = _a.tabList,
currentTabIndex = _a.currentTabIndex,
tabClickHandler = _a.tabClickHandler,
selectTabClass = _a.selectTabClass,
unselectedTabClass = _a.unselectedTabClass,
tabContainerClass = _a.tabContainerClass,
tabOptionsClass = _a.tabOptionsClass;
var _b = _a.tabList,
tabList = _b === void 0 ? [] : _b,
_c = _a.currentTabIndex,
currentTabIndex = _c === void 0 ? 0 : _c,
_d = _a.tabClickHandler,
tabClickHandler = _d === void 0 ? function () {} : _d,
_e = _a.selectTabClass,
selectTabClass = _e === void 0 ? "" : _e,
_f = _a.unselectedTabClass,
unselectedTabClass = _f === void 0 ? "" : _f,
_g = _a.tabContainerClass,
tabContainerClass = _g === void 0 ? "" : _g,
_h = _a.tabOptionsClass,
tabOptionsClass = _h === void 0 ? "" : _h;
return (0, jsx_runtime_1.jsxs)("div", __assign({

@@ -28,0 +35,0 @@ className: tabContainerClass

{
"name": "react-tab-component-pure-js",
"version": "1.0.8",
"version": "1.0.9",
"repository": {

@@ -34,2 +34,3 @@ "type": "git",

"react",
"react-component",
"tabs",

@@ -46,3 +47,6 @@ "tab-component",

"author": "Anup Agarwal",
"license": "MIT"
"license": "MIT",
"engines": {
"node": ">=12.0.0"
}
}
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