<PopoverButton>

The <PopoverButton> system component displays a given component as a popover when the button is clicked.

interface PopoverButtonProps

Properties

type (optional)
: "menu" | "popover"

Whether to display a menu or a popover when the button is clicked.

Default value is "popover".

children
: React.ReactNode

Children nodes rendered inside the button.

popoverComponent
: React.ComponentType<T>

The popover component to render in response to the button click.

popoverProps
: T

Props passed to the popover component.