File: dock.md | Updated: 11/15/2025
Introducing PrimeReact v11 Alpha 🥁Learn More
SearchK
10.9.7
FEATURES
API
THEMING
PASS THROUGH
Dock is a navigation component consisting of menuitems.
Import#
import { Dock } from 'primereact/dock';
Copy
Basic#
Menu requires a collection of menuitems as its model. Default location is bottom and other sides are also available when defined with the position property.
Bottom
Top
Left
Right
Copy
Advanced#
A sample macOS implementation using various components.
Fri 13:07
Copy
Accessibility#
Dock component uses the menu role with the aria-orientation and the value to describe the menu can either be provided with aria-labelledby or aria-label props. Each list item has a presentation role whereas anchor elements have a menuitem role with aria-label referring to the label of the item and aria-disabled defined if the item is disabled.
| Key | Function | | --- | --- | | tab | Add focus to the first item if focus moves in to the menu. If the focus is already within the menu, focus moves to the next focusable item in the page tab sequence. | | shift + tab | Add focus to the last item if focus moves in to the menu. If the focus is already within the menu, focus moves to the previous focusable item in the page tab sequence. | | enter | Activates the focused menuitem. | | space | Activates the focused menuitem. | | down arrow | Moves focus to the next menuitem in vertical layout. | | up arrow | Moves focus to the previous menuitem in vertical layout. | | home | Moves focus to the first menuitem in horizontal layout. | | end | Moves focus to the last menuitem in horizontal layout. |
Import
Basic
Advanced
Accessibility
PrimeReact 10.9.7 by PrimeTek