Skip to content

Is there a way to expand the width of the dialog? #3110

Answered by picklelo
hragbalian asked this question in Q&A
Discussion options

You must be logged in to vote

@hragbalian It looks like they're setting a max_width prop on the content - I was able to make it wider like this:

rx.dialog.root(
    rx.dialog.trigger(rx.button("Open Dialog")),
    rx.dialog.content(
        rx.dialog.title("Welcome to Reflex!"),
        rx.dialog.description(
            "This is a dialog component. You can render anything you want in here.",
        ),
        rx.dialog.close(
            rx.button("Close Dialog", size="3"),
        ),
        max_width="100vw", # Make this a bigger value, it's fixed by default.
        width="100vw",
    ),
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hragbalian
Comment options

Answer selected by hragbalian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants