MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Popover

Function Popover

starters/docs/src/Popover.tsx:15–32  ·  view source on GitHub ↗
({children, hideArrow, ...props}: PopoverProps)

Source from the content-addressed store, hash-verified

13}
14
15export 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

Calls 1

clsxFunction · 0.50

Tested by

no test coverage detected