---
title: "Popover"
slug: popover
category: component
type: examples
version: 20.0.0
tokens: 1289
source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-popover--examples.txt
---
# Popover
## Default
```tsx
Show popover
This is the popover content
```
## Custom Trigger
```tsx
This is the popover content
```
## Controlled
```tsx
{
const [isOpen, setIsOpen] = useState(false);
function togglePopover() {
setIsOpen((isOpen) => !isOpen);
}
return (
<>
This is the popover content
>
);
}
```
## Same Width
```tsx
Show popover that will take this width as reference
The popover content
```
## Grid
```tsx
<>
Top Left
Top Left popover
Top
Top popover
Top Right
Top Right popover
Middle Left
Middle Left popover
Middle Right
Middle Right popover
Bottom Left
Bottom Left popover
Bottom
Bottom popover
Bottom Right
Bottom Right popover
>
```
## ZIndex
```tsx
<>
Default Z-axis order:
Back
Front
Custom Z-axis order:
Front
Back
>
```
## Accessibility With Menu
```tsx