({children, showArrow, className, ...props}: PopoverProps)
| 26 | }); |
| 27 | |
| 28 | export function Popover({children, showArrow, className, ...props}: PopoverProps) { |
| 29 | let offset = showArrow ? 12 : 8; |
| 30 | return ( |
| 31 | <AriaPopover |
| 32 | offset={offset} |
| 33 | {...props} |
| 34 | className={composeRenderProps(className, (className, renderProps) => |
| 35 | styles({...renderProps, className}) |
| 36 | )}> |
| 37 | {showArrow && ( |
| 38 | <OverlayArrow className="group"> |
| 39 | <svg |
| 40 | width={12} |
| 41 | height={12} |
| 42 | viewBox="0 0 12 12" |
| 43 | className="block fill-white dark:fill-[#1f1f21] forced-colors:fill-[Canvas] stroke-1 stroke-black/10 dark:stroke-neutral-700 forced-colors:stroke-[ButtonBorder] group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90"> |
| 44 | <path d="M0 0 L6 6 L12 0" /> |
| 45 | </svg> |
| 46 | </OverlayArrow> |
| 47 | )} |
| 48 | {children} |
| 49 | </AriaPopover> |
| 50 | ); |
| 51 | } |
nothing calls this directly
no test coverage detected