mirror of
https://github.com/vercel/commerce.git
synced 2025-07-21 19:51:22 +00:00
✨ feat: Tab Common
This commit is contained in:
parent
1dc3b0c449
commit
69e685b55c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user