import React from 'react'; import { Tabs } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ token, css }) => { const antdTabsCls = '.ant-tabs'; return css` ${antdTabsCls}${antdTabsCls}-card { ${antdTabsCls}-content { padding: ${token.padding}px; background: ${token.colorBgContainer}; } ${antdTabsCls}-nav { margin: 0; ${antdTabsCls}-nav-wrap > ${antdTabsCls}-nav-list > ${antdTabsCls}-tab { background: transparent; border-color: transparent; &-active { border-color: ${token.colorBorderBg}; background: ${token.colorBgContainer}; } } &::before { display: none; } } } `; }); const items = new Array(3).fill(null).map((_, i) => { const id = String(i + 1); return { label: `Tab Title ${id}`, key: id, children: ( <>
Content of Tab Pane {id}
Content of Tab Pane {id}
Content of Tab Pane {id}
> ), }; }); const App = () => { const { styles } = useStyle(); return (