This commit is contained in:
2026-11-21 22:57:24 +08:00
commit 4bce6dd47e
209 changed files with 11072 additions and 0 deletions
@@ -0,0 +1,16 @@
import type { CommonProps } from "../../utils/CommonProps"
import { PopoverContext } from "./use-popover-context"
import { usePopoverFloating } from "./use-popover-floating"
export type PopoverProps = CommonProps & {
}
export const Popover = (props: PopoverProps) => {
const { children } = props
const popoverFloatingContext = usePopoverFloating()
return <PopoverContext.Provider value={popoverFloatingContext}>
<div>{children}</div>
</PopoverContext.Provider>
}