Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

505
Views
How to customize chakra ui tab element. in react

i want to add tab eliments active style i saw they have used aria-selected:true to apply the css style in a class but i don't know how to override this style in react can anyone explain how can i overwrite this in react ? Please See the right down side. for the style they have used enter image description here

.css-y2jimx[aria-selected=true], .css-y2jimx[data-selected] {
color: var(--chakra-colors-blue-600);
border-color: currentColor;}

I want to overwrite this code in my react element like this

 <Tab style={
          aria-selected? 'selected style':'not selected style'
        }     
      >Basics</Tab>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Chakra-UI is very well documented, you'll find all you need on this page : https://chakra-ui.com/docs/components/disclosure/tabs.

First choose your variant, then your colorScheme. At last you will maybe need the _selected props for the final touch : https://chakra-ui.com/docs/components/disclosure/tabs#styling-the-tab-states-via-props

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!