--- import type { HTMLAttributes } from "astro/types"; interface Props extends HTMLAttributes<"div"> { openOn?: "click" | "hover" | "contextmenu"; placement?: | "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "left-start" | "left" | "left-end"; offset?: number; shiftPadding?: number; showArrow?: boolean; closeOnSelect?: boolean; disabled?: boolean; matchTriggerWidth?: boolean; initialOpen?: boolean; } const { openOn = "click", placement = "bottom-start", offset = 8, shiftPadding = 8, showArrow = true, closeOnSelect = true, disabled = false, matchTriggerWidth = false, initialOpen = false, class: className, ...rest }: Props = Astro.props; const id = `dd-${Math.random().toString(36).slice(2)}`; ---