BasicPopover
Components
BasicPopover()
BasicPopover(
props
,context
?):ReactNode
A BasicPopover component provides an easy and fast way to include a popover in your app.
Parameters
Parameter | Type |
---|---|
props | BasicPopoverProps |
context ? | any |
Returns
ReactNode
Example
const targetNode = document.createElement('div');
const Contents = (
<React.Fragment>
<div>Popover content</div>
<div>Popover content</div>
<div>Popover content</div>
</React.Fragment>
);
<BasicPopover target={targetNode} children={Contents} />
Source
libs/design-system-core/src/components/BasicPopover/index.tsx:33
Props
BasicPopoverProps
BasicPopoverProps:
PropsWithChildren
<object
>
Type declaration
Member | Type |
---|---|
closePopover | () => void |
gap | string |
overflow | OverflowType | object |
target | HTMLElement |
Source
libs/design-system-core/src/components/BasicPopover/index.tsx:6
OverflowType
OverflowType:
"auto"
|"hidden"
|"scroll"
|"visible"
Source
libs/design-system-core/src/components/BasicPopover/index.tsx:4