Skip to content
Discussion options

You must be logged in to vote

In your example the checkbox is pretty wide, which you can verify by adding a border or background color to ui.checkbox. You can bring it back to its original size and stay left-aligned using the "justify-items-start" class:

with ui.card().classes('w-full'):
    with ui.grid(columns=2).classes('w-full justify-items-start'):
        with ui.checkbox('Warning!').classes('relative border'):
            badge = ui.badge('!', color='red').props('floating')
        ui.checkbox('Select').classes('border')

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tz301
Comment options

@falkoschindler
Comment options

Answer selected by tz301
@tz301
Comment options

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