Skip to content

Can buttons in a button group wrap to the next line automatically? #2847

Closed Answered by falkoschindler
Daniel-Fei asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Daniel-Fei,

  1. I don't think this is possible. At least I can't find a prop or something in the Quasar documentation.

  2. I don't think "spread" would help. Buttons in a group like ui.button_group().classes('w-[500px]').props('spread') simply spread over 500px instead of taking only the space they need. But they don't wrap.

  3. Yes, you can nest ui.tooltip elements with arbitrary styled child elements:

    with ui.button('Button'):
        with ui.tooltip():
            ui.label('This is a yellow button').classes('text-yellow')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Daniel-Fei
Comment options

Answer selected by Daniel-Fei
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