Files
archived-linsa/web/shared/la-editor/components/ui/popover-wrapper.tsx
2024-10-07 12:44:17 +03:00

25 lines
532 B
TypeScript

import * as React from "react"
import { cn } from "@/lib/utils"
export type PopoverWrapperProps = React.HTMLProps<HTMLDivElement>
export const PopoverWrapper = React.forwardRef<
HTMLDivElement,
PopoverWrapperProps
>(({ children, className, ...props }, ref) => {
return (
<div
className={cn(
"bg-popover text-popover-foreground rounded-lg border shadow-sm",
className,
)}
{...props}
ref={ref}
>
{children}
</div>
)
})
PopoverWrapper.displayName = "PopoverWrapper"