Next.js Discord

Discord Forum

Shadcn modify text color on tabs TabsTrigger

Answered
SpicyJungle posted this in #help-forum
Open in Discord
Hey, is it possible to modify the text color on one specific instance of the Tabs component, and modify the text color on <TabsTrigger> depending on wether its active/unactive?
Answered by Ray
yes try this className
data-[state=active]:text-red-500
View full answer

2 Replies