Files
gpustack-ui/src/components/popover/index.tsx
T
2024-05-17 09:23:13 +08:00

24 lines
595 B
TypeScript

import { Popover } from 'antd';
import type { PopoverProps } from 'antd/lib/popover';
import classNames from 'classnames';
import styles from './index.less';
const SealPopover: React.FC<PopoverProps> = (props) => {
const { className, children, style, ...restProps } = props;
return (
<div className="popover-wrapper">
<Popover
{...restProps}
style={{ ...style }}
data-maxHeight="300px"
overlayClassName={classNames(className, styles.seal_custom_popover)}
>
{children}
</Popover>
</div>
);
};
export default SealPopover;