ConceptPortal-public/rsconcept/frontend/src/components/Common/ConceptTab.tsx

20 lines
448 B
TypeScript
Raw Normal View History

2023-07-15 17:46:19 +03:00
import { Tab} from 'react-tabs';
import type { TabProps } from 'react-tabs';
function ConceptTab({children, className, ...otherProps} : TabProps) {
return (
<Tab
className={
2023-07-20 17:11:03 +03:00
'px-2 py-1 text-sm text-gray-600 hover:cursor-pointer dark:text-zinc-200 hover:bg-gray-300 dark:hover:bg-gray-400'
2023-07-15 17:46:19 +03:00
+ ' ' + className
}
{...otherProps}
>
{children}
</Tab>
);
}
ConceptTab.tabsRole = 'Tab';
export default ConceptTab;