mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-11 15:06:02 +08:00
20 lines
545 B
TypeScript
20 lines
545 B
TypeScript
import { EllipsisVerticalIcon } from '@heroicons/react/24/outline'
|
|
import { ComponentProps, forwardRef } from 'react'
|
|
|
|
const DottedButton = forwardRef<
|
|
HTMLButtonElement,
|
|
Omit<ComponentProps<'button'>, 'children'>
|
|
>(({ className, ...props }, ref) => {
|
|
return (
|
|
<button
|
|
ref={ref}
|
|
className={`px-2 bg-transparent ${className}`}
|
|
{...props}
|
|
>
|
|
<EllipsisVerticalIcon className='w-5 h-5 min-w-[1rem] text-foreground' />
|
|
</button>
|
|
)
|
|
})
|
|
|
|
export default DottedButton
|