Problem: Bottom-anchored action bar.

Solution#

html
<div class="fixed inset-x-0 bottom-0 z-40 border-t bg-white p-4 md:hidden">
  <button class="w-full rounded-xl bg-blue-600 py-3 font-semibold text-white">Continue</button>
</div>

Why this works#

fixed bottom bar hidden on md+.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns