- React

## Examples

By default, the `appendTo` prop of the popover will append to the document body in order to avoid the popover content not being fully visible. Another option is to increase the z-index of the element the popover is appended to to be higher than the z-index of the element that is hiding the popover.

### Basic

### Hoverable

### Close popover from content (controlled)

### Close popover from content (uncontrolled)

Note: If you use the isVisible prop, either refer to the example above or if you want to use the hide callback from the content then be sure to keep isVisible in-sync.

### Without header/footer/close and no padding

### Width auto

Here the popover goes over the navigation, so the prop `appendTo` is set to the documents body.

### Popover react ref

### Popover selector ref

### Advanced

### Popover with icon in the title

Here the popover goes over the navigation, so the prop `appendTo` is set to the documents body.

### Alert popover

Here the popover goes over the navigation, so the prop `appendTo` is set to the documents body.

### Custom focus

Use the `elementToFocus` property to customize which element inside the Popover receives focus when opened.

##
CSS variables