Popover
Popover
Default
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
content | React.ReactNode | Yes | - | Content of popover. |
defaultState | boolean | No | false | Open/Closed popover by default. |
closeOnClickOutside | boolean | No | true | Close popover if clicked outside. |
placement | Placement | No | - | Placement of popover. |
minWidth | number | No | 300 | min-width value of popover (px) |
maxWidth | number | No | 600 | max-width value of popover (px) |
type Placement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';