Function
Popover
({children, hideArrow, ...props}: PopoverProps)
Source from the content-addressed store, hash-verified
| 13 | } |
| 14 | |
| 15 | export function Popover({children, hideArrow, ...props}: PopoverProps) { |
| 16 | return ( |
| 17 | <AriaPopover {...props} className={clsx('react-aria-Popover', props.className)}> |
| 18 | {({trigger}) => ( |
| 19 | <> |
| 20 | {!hideArrow && trigger !== 'MenuTrigger' && trigger !== 'SubmenuTrigger' && ( |
| 21 | <OverlayArrow> |
| 22 | <svg width={12} height={12} viewBox="0 0 12 12"> |
| 23 | <path d="M0 0 L6 6 L12 0" /> |
| 24 | </svg> |
| 25 | </OverlayArrow> |
| 26 | )} |
| 27 | {children} |
| 28 | </> |
| 29 | )} |
| 30 | </AriaPopover> |
| 31 | ); |
| 32 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected