This commit is contained in:
2026-11-24 16:17:45 +08:00
parent a3dbdd7d11
commit ea56e4cabd
140 changed files with 1214 additions and 702 deletions
@@ -1,16 +1,16 @@
import type { CommonProps } from "../../utils/CommonProps"
import { PopoverContext } from "./use-popover-context"
import { usePopoverFloating } from "./use-popover-floating"
import type { CommonProps } from "../../utils/common-props";
import { PopoverContext } from "./use-popover-context";
import { usePopoverFloating } from "./use-popover-floating";
export type PopoverProps = CommonProps & {
}
export type PopoverProps = CommonProps & {};
export const Popover = (props: PopoverProps) => {
const { children } = props
const popoverFloatingContext = usePopoverFloating()
const { children } = props;
const popoverFloatingContext = usePopoverFloating();
return <PopoverContext.Provider value={popoverFloatingContext}>
<div>{children}</div>
return (
<PopoverContext.Provider value={popoverFloatingContext}>
<div>{children}</div>
</PopoverContext.Provider>
}
);
};