Function
Backdrop
({ onClose, className }: { onClose: () => void, className?: string })
Source from the content-addressed store, hash-verified
| 1 | import { cn } from "~/utils/css" |
| 2 | |
| 3 | export 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
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…