UI ELEMENTS
Navigation is key in any website or web application.
Like other Ink components, our navigation elements have an easy and intuitive implementation and their structure is a combination of simple and semantic markup with natural language class naming.
We have five types of navigation elements that are:
menu
A simple menu bar for basic navigation, with horizontal and vertical layouts and sub menus.
breadcrumbs
Breadcrumb type navigation, for when your interfaces require contextual navigation.
pagination
Pagination type navigation, for when you need to split your content intro smaller chunks.
pills
Pill type navigation. Pills are essentially the same as menu navigation but look like single "buttons".
dropdowns
Dropdown menu type navigation. Very similar to what you'd find in your operative system.
Class name | Description |
---|---|
ink-navigation |
The navigation root class. |
menu breadcrumbs pagination pills
dropdown
|
Defines the type of navigation. |
white grey black blue green orange red
|
Defines the navigation theme color. |
All of the navigation elements have the same basic structure:
Structure
Pagination type navigation is created by using the pagination
CSS class in the <ul>
element, and by default has a button bar presentation:
Code
Demo
To get a dotted style of pagination, add the dotted
CSS class to the <ul>
element:
Code
Demo
To get a chevron style of pagination, add the chevron
CSS class to the <ul>
element:
Code
Demo
Pills type navigation is created by using the pills
CSS class in the <ul>
element, and by default has a button bar presentation:
Code
Demo
Dropdowns use the same base structure as the other navigation types, but have a few extra classes to handle its higher complexity. Adding the dropdown
CSS class to the top <ul>
element will set the basic styling and behaviour of the dropdown menu.
Code
Demo
If you need to organize your menu items into groups, use either the separator-above
or separator-below
, to create a separating line:
Code
Demo
Menu section headings are also available:
Code
Demo
Submenus are created by adding the submenu
class to one of your menu items and creating another dropdown within it:
Code
Demo
Submenus can be nested to create multiple sub level complex menu structures.
As in other components you can set the state of a menu item with the active
or disabled
classes, and use our navigation themes:
Code
Demo