mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
24
web/shared/la-editor/components/ui/popover-wrapper.tsx
Normal file
24
web/shared/la-editor/components/ui/popover-wrapper.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user