Breakpoint variants apply according to viewport width. Verify which label remains available to assistive technology when switching presentations.
Worked example
<span class="demo sm:hidden">Compact layout label</span>Implementation notes
Responsive visibility can remove both copies of a label if breakpoints disagree. Check exactly at the transition width and on each side.
Try it yourself
Resize across the breakpoint and inspect both the visible and accessible names.
Open the Tailwind CSS example →Editorial date August 17, 2026 · Published December 6, 2026