feat: Tab Common

This commit is contained in:
sonnguyenkieio 2021-09-07 15:44:00 +07:00 committed by GitHub
parent 1dc3b0c449
commit 69e685b55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ import s from './TabCommon.module.scss'
import TabItem from './TabItem/TabItem' import TabItem from './TabItem/TabItem'
interface TabCommonProps { 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; defaultActiveTab: number;
sliderRef : RefObject<HTMLDivElement>; sliderRef : RefObject<HTMLDivElement>;
slideToTab: (ref: any) => void; slideToTab: (ref: any) => void;