Skip to content

Tabs Wrapping/Stacking on small devices #2768

Closed Answered by saadeghi
bluejabiru asked this question in Q&A
Discussion options

You must be logged in to vote

Wrapping tabs in a scrollable area would be helpful, and it looks better than overflowing tabs to the next line.

Here's an example: https://play.tailwindcss.com/tS1G5dSfRZ

<div class="m-10 overflow-x-auto">
  <nav role="tablist" class="tabs tabs-lifted whitespace-nowrap">
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class="tab tab-active">Long tab title</a>
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class="tab">Long tab title</a>
    <a role="tab" class

Replies: 1 comment 1 reply

Comment options

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

Answer selected by saadeghi
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