mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 07:01:04 +08:00
21 lines
528 B
TypeScript
21 lines
528 B
TypeScript
|
|
import { cn } from '@/lib/utils';
|
||
|
|
import { Ellipsis } from 'lucide-react';
|
||
|
|
import React from 'react';
|
||
|
|
import { Button, ButtonProps } from './ui/button';
|
||
|
|
|
||
|
|
export const MoreButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
||
|
|
({ className, size, ...props }, ref) => {
|
||
|
|
return (
|
||
|
|
<Button
|
||
|
|
ref={ref}
|
||
|
|
variant="ghost"
|
||
|
|
size={size || 'icon'}
|
||
|
|
className={cn('invisible group-hover:visible size-3.5', className)}
|
||
|
|
{...props}
|
||
|
|
>
|
||
|
|
<Ellipsis />
|
||
|
|
</Button>
|
||
|
|
);
|
||
|
|
},
|
||
|
|
);
|