UnderlineNav
ready
This page may be removed. Primer plans to move all Rails component documentation to Lookbook.
Description
Use UnderlineNav to style navigation links with a minimal
underlined selected state, typically placed at the top
of the page.
For panel navigation, use Primer::Alpha::UnderlinePanels instead.
Accessibility
- By default,
UnderlineNavrenders links within a<nav>element.<nav>has an implicit landmark role ofnavigationwhich should be reserved for main links. For all other set of links, set tag to:div. - See
Primer::Alpha::Navigation::Tabfor additional accessibility considerations.
Arguments
| Name | Default | Description |
|---|---|---|
tag | SymbolOne of | |
label | StringSets an | |
align | SymbolOne of | |
body_arguments | HashSystem arguments for the body wrapper. | |
system_arguments | Hash |
Slots
tabs
Use the tabs to list page links.
| Name | Default | Description |
|---|---|---|
selected | BooleanWhether the tab is selected. | |
system_arguments | Hash |
actions
Use actions for a call to action.
| Name | Default | Description |
|---|---|---|
tag | SymbolOne of | |
system_arguments | Hash |