mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
25 lines
532 B
TypeScript
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"
|