1- import classNames from 'classnames ' ;
1+ import { clsx } from 'clsx ' ;
22import ResizeObserver from '@rc-component/resize-observer' ;
33import useEvent from '@rc-component/util/lib/hooks/useEvent' ;
44import { useComposeRef } from '@rc-component/util/lib/ref' ;
@@ -584,7 +584,7 @@ const TabNavList = React.forwardRef<HTMLDivElement, TabNavListProps>((props, ref
584584 ref = { useComposeRef ( ref , containerRef ) }
585585 role = "tablist"
586586 aria-orientation = { tabPositionTopOrBottom ? 'horizontal' : 'vertical' }
587- className = { classNames ( `${ prefixCls } -nav` , className , tabsClassNames ?. header ) }
587+ className = { clsx ( `${ prefixCls } -nav` , className , tabsClassNames ?. header ) }
588588 style = { { ...styles ?. header , ...style } }
589589 onKeyDown = { ( ) => {
590590 // No need animation when use keyboard
@@ -595,7 +595,7 @@ const TabNavList = React.forwardRef<HTMLDivElement, TabNavListProps>((props, ref
595595
596596 < ResizeObserver onResize = { onListHolderResize } >
597597 < div
598- className = { classNames ( wrapPrefix , {
598+ className = { clsx ( wrapPrefix , {
599599 [ `${ wrapPrefix } -ping-left` ] : pingLeft ,
600600 [ `${ wrapPrefix } -ping-right` ] : pingRight ,
601601 [ `${ wrapPrefix } -ping-top` ] : pingTop ,
@@ -624,7 +624,7 @@ const TabNavList = React.forwardRef<HTMLDivElement, TabNavListProps>((props, ref
624624 } }
625625 />
626626 < div
627- className = { classNames ( `${ prefixCls } -ink-bar` , tabsClassNames ?. indicator , {
627+ className = { clsx ( `${ prefixCls } -ink-bar` , tabsClassNames ?. indicator , {
628628 [ `${ prefixCls } -ink-bar-animated` ] : animated . inkBar ,
629629 } ) }
630630 style = { { ...indicatorStyle , ...styles ?. indicator } }
0 commit comments