Files
DefectingCat.github.io/components/rua/tab/tab-item.tsx
2025-05-19 15:01:20 +08:00

20 lines
405 B
TypeScript

import clsx from 'clsx';
import React, { memo } 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 memo(TabItem);