Dock groups frequent actions into a compact bar. Pass an items array of NeuDockItem, each with a unique key and a label. Use command for an action, routerLink for an application route or url for a link. Icons are optional and resolved by your application; active marks the current destination.
position sets a horizontal bar for top/bottom and a vertical bar for left/right; it does not fix the dock to the viewport. magnification enlarges items on hover with a fine pointer. breakpoint switches to the compact mobile presentation.
Activate Workspace, Documents or Search. Each item runs its command and emits itemClick; the counters below show both actions. Settings starts disabled. Open Code to see the item definitions and event handlers.
itemClick reports activation after the item command. itemFocus and itemBlur report focus events. The application owns work, routing and active data; Core owns hover/focus presentation and keyboard navigation. neuDockItem replaces visible item content with item, active and index while retaining the owning link/button and accessible label.
Name the dock. Tab reaches the active available item; arrows follow orientation/direction and Home/End reach the ends. Hidden/disabled actions are excluded from roving focus. Enter/Space activate commands; links retain their native navigation. Tooltip text is supplemental, not the only accessible label. Custom Templates should not add nested interactive controls.
Key
Action
Tab
Enter the dock at the active available item or leave the group.
Arrow keys
Move through available items according to orientation and text direction; disabled/hidden items are skipped.
Home
Focus the first available item.
End
Focus the last available item.
Enter
Activate the focused command or follow its link.
Space
Activate a focused command button; links retain native behaviour.
Emits the activated leaf/action. The optional command runs first; disabled entries do not activate.
itemFocus
FocusEvent
(itemFocus)="onItemFocus($event)"
Emits the FocusEvent when an available dock action receives focus.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
Use supported public tokens for the component. Icon resolution and surrounding example layout belong to the application. Check both themes and narrow screens.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-primary
Brand color for active controls and emphasis
Shared by other Core consumers; scope the override.
#007aff
--neu-primary-soft
Subtle selected or active surface
Shared by other Core consumers; scope the override.
var(--neu-primary-50)
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-surface-2
Secondary surfaces and alternating rows
Shared by other Core consumers; scope the override.
#f1f5f9
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-shadow-lg
Surface or overlay elevation
Shared by other Core consumers; scope the override.