You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
421 B
20 lines
421 B
import classNames from "classnames"; |
|
import { ReactNode } from "react"; |
|
|
|
interface Props { |
|
id: string; |
|
children?: ReactNode; |
|
className?: string; |
|
} |
|
|
|
export function OverlayAnchor(props: Props) { |
|
return ( |
|
<div className={classNames("relative", props.className)}> |
|
<div |
|
id={`__overlayRouter::${props.id}`} |
|
className="absolute inset-0 -z-10" |
|
/> |
|
{props.children} |
|
</div> |
|
); |
|
}
|
|
|