You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/web/src/components/PillTabs.tsx

24 lines
447 B
TypeScript

import { Tabs } from 'antd';
import React from 'react';
import './PillTabs.less';
/**
* @example
* <PillTabs>
* <PillTabPane key="1" tab={t('全部')}>
* ...
* </PillTabPane>
* </PillTabs>
*/
export const PillTabs = React.memo((props) => {
return (
<Tabs className="pill-tabs" type="card" animated={true}>
{props.children}
</Tabs>
);
});
PillTabs.displayName = 'PillTabs';
export const PillTabPane = Tabs.TabPane;