Files
DefectingCat.github.io/components/RUA/tab/TabItem.tsx
2022-11-22 14:32:57 +08:00

20 lines
389 B
TypeScript

import clsx from 'clsx';
import React from 'react';
export type ItemProps = {
value: string | number;
label: string | number;
showContent?: boolean;
children?: React.ReactNode;
};
const TabItem = ({ showContent, children }: ItemProps) => {
return (
<>
<div className={clsx('hidden', showContent && '!block')}>{children}</div>
</>
);
};
export default TabItem;