---
order: 12
title:
zh-CN: 自定义页签头
en-US: Customized bar of tab
---
## zh-CN
使用 react-sticky 组件实现吸顶效果。
## en-US
Use react-sticky.
```tsx
import React from 'react';
import { Tabs } from 'antd';
import { StickyContainer, Sticky } from 'react-sticky';
import type { TabsProps } from 'antd';
const { TabPane } = Tabs;
const renderTabBar: TabsProps['renderTabBar'] = (props, DefaultTabBar) => (
{({ style }) => (
)}
);
const App: React.FC = () => (
Content of Tab Pane 1
Content of Tab Pane 2
Content of Tab Pane 3
);
export default App;
```
```css
.site-custom-tab-bar {
z-index: 1;
background: #fff;
}
```