Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS Navbar

Build responsive Tailwind CSS navbars with brand logos, navigation links, horizontal scroll, collapse menus, alignment, dropdowns, and color variants.

Default navbar

Use a basic navbar to display your brand, navigation links, and utility actions.

Horizontally scrollable navbar

Use horizontal scrolling to keep navigation items accessible on smaller screens without collapsing them.

Resize the example to see it in action.

Collapsible navbar

Requires JS

Note that this component requires the use of our Collapse plugin, else you can skip this message if you are already using Preline UI as a package.

Group navbar content into a collapsible section that hides below a chosen breakpoint.

This example collapses automatically at the sm breakpoint.

SVG logo

Replace the text brand with an inline <svg> logo.

SVG logo with text

Pair an inline svg logo with brand text in the same navbar link.

Image logo

Replace the text brand with an <img> logo.

Image logo with text

Pair an image logo with brand text in the same navbar link.

Navbar alignment

Left aligned navbar

Use a left-aligned navbar when the brand and navigation should start from the same edge.

Centered navbar

Use a centered navbar when the primary navigation should stay visually balanced around the middle.

Navbar with dropdown

Requires JS

Note that this component requires the use of our Dropdown plugin, else you can skip this message if you are already using Preline UI as a package.

Add dropdown menus or mega-menu panels when the navbar needs nested navigation.

Navbar color variants

Apply utility classes to change the navbar's background, border, and text treatment.

© 2026 Preline Labs.