,
) {
@@ -63,7 +65,7 @@ function TabNode(
) {
}
const tabNodes: React.ReactElement[] = tabs.map((tab, i) => {
- const { key } = tab;
+ const { key, className: tabClassName } = tab;
return (
) {
tab={tab}
/* first node should not have margin left */
style={i === 0 ? undefined : tabNodeStyle}
+ className={tabClassName}
closable={tab.closable}
editable={editable}
active={key === activeKey}
diff --git a/tests/__snapshots__/index.test.tsx.snap b/tests/__snapshots__/index.test.tsx.snap
index 08483b9b..b232b3ba 100644
--- a/tests/__snapshots__/index.test.tsx.snap
+++ b/tests/__snapshots__/index.test.tsx.snap
@@ -30,7 +30,7 @@ exports[`Tabs.Basic Normal 1`] = `