NativePopover

NativePopover is a component that floats around an element to display information using the HTML Popover API.

Usage

import { NativePopover } from "@yamada-ui/react"
<NativePopover.Root>
  <NativePopover.Anchor />
  <NativePopover.Trigger />
  <NativePopover.Content>
    <NativePopover.Header />
    <NativePopover.Body />
    <NativePopover.Footer />
  </NativePopover.Content>
</NativePopover.Root>

Change Size

Close Trigger

You can add a close button inside the popover using NativePopover.CloseTrigger.

Display Popover on Different Element

To display a popover on a different element, use NativePopover.Anchor.

Display Popover Here

Change Placement

To change the placement, set placement to "start", "end-end", etc. By default, "end" is set.

Change Offset

To change the offset, set gutter or offset to a value.

Popover Modes

The HTML Popover API supports different modes for controlling popover behavior. This is a key feature that distinguishes NativePopover from the Popover component.

Disable

To disable the popover, set disabled to true.

Nest Popovers

Props