Reflex Logo

Intro

Gallery

Hosting

Learn

Components

Recipes

API Reference

Onboarding

Library

/

Chakra

/

Overlay

/

Menu

An accessible dropdown menu for the common dropdown menu button design pattern.

rx.chakra.menu(
    rx.chakra.menu_button("Menu"),
    rx.chakra.menu_list(
        rx.chakra.menu_item("Example"),
        rx.chakra.menu_divider(),
        rx.chakra.menu_item("Example"),
        rx.chakra.menu_item("Example"),
    ),
)

The wrapper component provides context, state, and focus management.

PropTypeDefault ValueValues
arrow_padding
int
auto_select
bool
boundary
str
close_on_blur
bool
close_on_select
bool
default_is_open
bool
direction
Literal
flip
bool
gutter
int
is_lazy
bool
lazy_behavior
str
is_open
bool
match_width
bool
placement
str
prevent_overflow
bool
strategy
Literal

Event Triggers

TriggerDescription
on_close

Fired when the menu is closed.

on_open

Fired when the menu is opened.

The trigger for the menu list. Must be a direct child of Menu.

PropTypeDefault ValueValues
variant
str
as_
str

The wrapper for the menu items. Must be a direct child of Menu.

Props

No component specific props

The trigger that handles menu selection. Must be a direct child of a MenuList.

PropTypeDefault ValueValues
close_on_select
bool
command
str
command_spacing
int
is_disabled
bool
is_focusable
bool

A visual separator for menu items and groups.

Props

No component specific props

A wrapper to group related menu items.

Props

No component specific props

A wrapper for checkable menu items (radio and checkbox).

PropTypeDefault ValueValues
type_
Literal
value
str

The checkable menu item, to be used with MenuOptionGroup.

PropTypeDefault ValueValues
close_on_select
bool
command
str
command_spacing
int
is_checked
bool
is_disabled
bool
is_focusable
bool
type_
Literal
value
str

Did you find this useful?

HomeGalleryChangelogIntroductionHosting