Reflex Logo

Intro

Gallery

Hosting

Learn

Components

Recipes

API Reference

Onboarding

Library

/

Chakra

/

Overlay

/

Popover

Popover is a non-modal dialog that floats around a trigger. It is used to display contextual information to the user, and should be paired with a clickable trigger element.

rx.chakra.popover(
    rx.chakra.popover_trigger(
        rx.chakra.button("Popover Example")
    ),
    rx.chakra.popover_content(
        rx.chakra.popover_header("Confirm"),
        rx.chakra.popover_body(
            "Do you want to confirm example?"
        ),
        rx.chakra.popover_footer(
            rx.chakra.text("Footer text.")
        ),
        rx.chakra.popover_close_button(),
    ),
)

The wrapper that provides props, state, and context to its children.

PropTypeDefault ValueValues
arrow_padding
int
arrow_shadow_color
str
arrow_size
int
auto_focus
bool
boundary
str
close_on_blur
bool
close_on_esc
bool
default_is_open
bool
direction
Literal
flip
bool
gutter
int
id_
str
is_lazy
bool
lazy_behavior
str
is_open
bool
match_width
bool
placement
str
prevent_overflow
bool
return_focus_on_close
bool
strategy
Literal
trigger
Literal

Event Triggers

TriggerDescription
on_close

Fired when the popover is closed.

on_open

Fired when the popover is opened.

Used to wrap the reference (or trigger) element.

Props

No component specific props

The popover itself.

Props

No component specific props

The header of the popover.

Props

No component specific props

The body of the popover.

Props

No component specific props

Display a popover footer.

Props

No component specific props

A visual arrow that points to the reference (or trigger).

Props

No component specific props

Used to wrap the position-reference element.

Props

No component specific props

Did you find this useful?

HomeGalleryChangelogIntroductionHosting