Default Active Tab #1860
Answered
by
juujisai
adw259
asked this question in
Support from community
Default Active Tab
#1860
-
I can use focus:bg-slate-200 to change the tab color when clicked but using active:bg-slate-200 to target the tab that is already visible on pageload does not work. |
Beta Was this translation helpful? Give feedback.
Answered by
juujisai
Aug 16, 2023
Replies: 1 comment
-
To style the current / active tab use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
filipkappa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To style the current / active tab use
data-[te-nav-active]:your-tw-class-here
. When a tab is active it receivesdata-te-nav-active
attribute