|
|
|
|
@ -106,7 +106,7 @@ export function PortalToFollowElem({
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const PortalToFollowElemTrigger = React.forwardRef<
|
|
|
|
|
HTMLElement,
|
|
|
|
|
HTMLElement,
|
|
|
|
|
React.HTMLProps<HTMLElement> & { asChild?: boolean }
|
|
|
|
|
>(({ children, asChild = false, ...props }, propRef) => {
|
|
|
|
|
const context = usePortalToFollowElemContext()
|
|
|
|
|
@ -141,8 +141,8 @@ React.HTMLProps<HTMLElement> & { asChild?: boolean }
|
|
|
|
|
PortalToFollowElemTrigger.displayName = 'PortalToFollowElemTrigger'
|
|
|
|
|
|
|
|
|
|
export const PortalToFollowElemContent = React.forwardRef<
|
|
|
|
|
HTMLDivElement,
|
|
|
|
|
React.HTMLProps<HTMLDivElement>
|
|
|
|
|
HTMLDivElement,
|
|
|
|
|
React.HTMLProps<HTMLDivElement>
|
|
|
|
|
>(({ style, ...props }, propRef) => {
|
|
|
|
|
const context = usePortalToFollowElemContext()
|
|
|
|
|
const ref = useMergeRefs([context.refs.setFloating, propRef])
|
|
|
|
|
|