Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

FAQ accordion card solution with Tailwind (No JavaScript + BONUS⭐)

react, vite, tailwind-css
Nutchapon Makelai•270
@kodaicoder
A solution to the FAQ accordion card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This is my first project with Tailwind CSS , searching hard on the internet and learning a lot of thing in Tailwind CSS , specially Arbitrary values and peer-{modifier} save me a lot of times

and some new HTML tag like <details> but finally I quit using that tag because of lagging of animation that require JavaScript to made it smooth and back to basic using custom checkbox input to doing a trick with a Tailwind CSS

Finally , IT'S A LIVE !!

also I still open for warming suggestion and still have a lot of thing to learning in React , Tailwind , ETC.

BONUS⭐ is a component of FAQ accordion build with <details> that I has try but not success 😉

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Nutchapon Makelai's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License