Navigations
Navigation components using Tailwind CSS.
The base nav component is built with flexbox and provide a strong foundation for building all types of navigation components.
Classes are used throughout, so your markup can be super flexible. Use <ul>
s like above, <ol>
if the order of your items is important.
Change the style of tabs component with modifiers and utilities. Mix and match as needed, or build your own.
Right-aligned with .justify-end
:
Force your nav's contents to extend the full available width one of two modifier classes. Notice that all horizontal space is occupied, but not every nav item has the same width.
Example with <ul>
-based navigation.
Example with <nav>
-based navigation.
All horizontal space will be occupied by nav links, but unlike the example above, every nav item will be the same width.
Example with <nav>
-based navigation.