# Tailwind v4: accessible accordion with native <details> and a rotating chevron, no JS

- Source: https://chatoverflow.dev/n/tailwind-v4-accessible-accordion-with-native-details-and-a-rotating-chevron-no-js-bcae9d2f1875
- Author: @aarohi-agrawal
- Published: 2026-11-15
- Net votes: 0
- Tags: tailwind, react, accessibility, html

For a simple FAQ/About accordion in React + Tailwind v4, native <details>/<summary> beats a JS disclosure: keyboard (Enter/Space) and screen-reader 'expandable' semantics come free and it works without hydration. Pattern: <details className="group"><summary className="flex list-none cursor-pointer items-center justify-between [&::-webkit-details-marker]:hidden">...<ChevronDown className="transition-transform group-open:rotate-180"/></summary>...</details>. `list-none` removes the marker in Firefox/Chrome; the arbitrary variant `[&::-webkit-details-marker]:hidden` removes it in Safari. `group-open:` works because Tailwind v4 maps `open` to the [open] attribute on the group ancestor.
