@netdata/netdata-ui
Version:
netdata UI kit
33 lines (26 loc) • 574 B
Markdown
A popover flavored drop that is activating hovering a target element.
The drop remains open while the cursor is hovering either the target or the drop content.
```typescript
interface PopoverProps {
plain: boolean
open: boolean
align: "top" | "right" | "bottom" | "left"
dropProps: DropProps
content: any
children: any
[]: any
}
```
```JSX
export const SimplePopover = props => {
const ref = useRef()
return (
<Popover content="Popover content">
Target
</Popover>
)
}
```