MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / Backdrop

Function Backdrop

docs/app/components/backdrop.tsx:3–13  ·  view source on GitHub ↗
({ onClose, className }: { onClose: () => void, className?: string })

Source from the content-addressed store, hash-verified

1import { cn } from "~/utils/css"
2
3export const Backdrop = ({ onClose, className }: { onClose: () => void, className?: string }) => (
4 // biome-ignore lint/a11y/useKeyWithClickEvents: We don't need keyboard events for backdrop
5 <div
6 className={cn("fixed inset-0 bg-[var(--color-modal-backdrop)] backdrop-blur-sm transition-opacity duration-200 z-50", className)}
7 onClick={(e) => {
8 if (e.target === e.currentTarget) {
9 onClose()
10 }
11 }}
12 />
13)

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
onCloseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…