ConceptPortal-public/rsconcept/frontend/src/components/Common/ConceptTab.tsx
2023-07-30 00:47:07 +03:00

19 lines
470 B
TypeScript

import type { TabProps } from 'react-tabs';
import { Tab } from 'react-tabs';
function ConceptTab({ children, className, ...otherProps }: TabProps) {
return (
<Tab
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
className={`px-2 py-1 border-r-2 text-sm hover:cursor-pointer clr-tab whitespace-nowrap ${className}`}
{...otherProps}
>
{children}
</Tab>
);
}
ConceptTab.tabsRole = 'Tab';
export default ConceptTab;