ConceptPortal-public/rsconcept/frontend/src/components/Common/ConceptTab.tsx
2023-09-03 18:26:50 +03:00

23 lines
480 B
TypeScript

import type { TabProps } from 'react-tabs';
import { Tab } from 'react-tabs';
interface ConceptTabProps
extends Omit<TabProps, 'className'> {
className?: string
}
function ConceptTab({ children, className, ...otherProps }: ConceptTabProps) {
return (
<Tab
className={`px-2 py-1 h-full text-sm hover:cursor-pointer clr-tab whitespace-nowrap ${className}`}
{...otherProps}
>
{children}
</Tab>
);
}
ConceptTab.tabsRole = 'Tab';
export default ConceptTab;