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

17 lines
376 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={`px-2 py-1 text-sm hover:cursor-pointer clr-tab ${className} whitespace-nowrap`}
2023-07-15 17:46:19 +03:00
{...otherProps}
>
{children}
</Tab>
);
}
ConceptTab.tabsRole = 'Tab';
export default ConceptTab;