feat: Tab Common

This commit is contained in:
sonnguyenkieio
2021-09-07 15:44:00 +07:00
committed by GitHub
parent 1dc3b0c449
commit 69e685b55c

View File

@@ -4,7 +4,7 @@ import s from './TabCommon.module.scss'
import TabItem from './TabItem/TabItem'
interface TabCommonProps {
tabs: {ref:RefObject<HTMLLIElement>, tabName: string, active: boolean, onClick: (tabIndex: number, tabPane: string) => void}[];
tabs: {ref:RefObject<HTMLLIElement>, tabName: string, active: boolean, onClick: (tabIndex: number, tabPane?: string) => void}[];
defaultActiveTab: number;
sliderRef : RefObject<HTMLDivElement>;
slideToTab: (ref: any) => void;