Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

176
Visualizações
i want to add this tailwind style ( active:border-b-2 active:border-blue-500) in next.js but this doesn't work

this is the tailwind style which i want to add

import React from 'react'

function HeaderIcon({Icon}) {
  return (
    <div
      className="flex
      items-center
      cursor-pointer
      md:px-10
      sm:h-14
      md:hover:bg-gray-100
      rounded-xl
      active:border-b-2
      active:border-blue-500"
    >
      <Icon className="h-5" />
    </div>
  )
}

export default HeaderIcon

------here i want to add tailwind style-----------------------------

<div className="flex justify-center flex-grow">
  <div className="flex space-x-6 md:space-2">
    <HeaderIcon Icon={HomeIcon} />
    <HeaderIcon Icon={FlagIcon} />
    <HeaderIcon Icon={PlayIcon} />
    <HeaderIcon Icon={ShoppingCartIcon} />
    <HeaderIcon Icon={UserGroupIcon} />
  </div>
</div>
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You have to modify the Tailwind settings to enable the active status.

Documentation

// tailwind.config.js
module.exports = {
  // ...
  variants: {
    extend: {
      backgroundColor: ['active'],
    }
  },
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda