Skip to content

tabs in left drawer #3029

Closed Answered by falkoschindler
atticus-lv asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @atticus-lv!

  1. These transition props need to be set to the ui.tab_panels, not the ui.tabs.
  2. To reduce the gap next to the tabs, you can remove the padding with the class "p-0" or the horizontal padding with "px-0".
with ui.left_drawer().classes('bg-blue-50 w-full px-0').props('width=150 breakpoint=500') as left_drawer:
    with ui.tabs().props('vertical switch-indicator swipeable').classes('w-full') as tabs:
        ui.tab('A')
        ui.tab('B')
        ui.tab('C')

with ui.tab_panels(tabs, value='A').classes('w-full').props('transition-prev=jump-up transition-next=jump-up'):
    with ui.tab_panel('A'):
        ui.label('Content of A')
    with ui.tab_panel('B'):
        ui.label('Co…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by atticus-lv
Comment options

You must be logged in to vote
0 replies
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