Nav Bars

Nav with currency and language

International storefront controls in the bar

Live preview
Build a header for an international site with Tailwind CSS. The bar holds a wordmark on the left, five centre links, and on the right a locale group: a bordered pill button showing a globe glyph with the language code and a chevron, a second pill showing the currency code with its symbol, a vertical hairline, then a sign-in link and a dark button. Below the bar, an inline panel that is normally hidden and expands to show two columns of options — twelve languages as a grid of small buttons with the native name and the code, and eight currencies as rows with the code, name and symbol — with the current choices ringed. Then add JavaScript that opens and closes the panel from either pill, marks and stores the selection, updates both pill labels, closes on Escape or an outside click, and shows a small muted line naming the shipping region implied by the currency.