More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | DockItemData[] | [] | The apps in the dock. Each item takes an icon, label and onClick, plus optional className, active (an open app, shown with a dot), badge (a number, text, or true for a plain dot) and menu. Add { separator: true } to divide groups. |
items[].menu | DockMenuItem[] | Rows of the context menu that opens on right click, long press or the menu key. Rows take label, onClick, icon, checked, disabled, shortcut and items for a submenu. Add { separator: true } for a divider. | |
position | 'bottom' | 'top' | 'left' | 'right' | 'bottom' | The edge of the nearest positioned parent the dock sits on. Icons grow away from that edge and the dock stands vertically on the left and right. |
theme | 'dark' | 'light' | 'dark' | Colors of the panel, tiles, labels and menus, made for dark or light pages. |
baseItemSize | 50 | Size of each icon at rest, in px. The dock shrinks everything evenly when its parent is too small to fit it. | |
magnification | 70 | Size of the icon right under the pointer, in px. Set it to baseItemSize to turn magnifying off. | |
distance | 200 | How far from the pointer icons still grow, in px. Larger values spread the swell over more icons. | |
panelHeight | 68 | Thickness of the dock bar, in px. Icons rise out of it as they grow. | |
gap | 10 | Space between icons, in px. | |
roundness | 0.5 | Corner rounding of the tiles and the bar, from square at 0 to circles at 1. | |
spring | { mass?: number; stiffness?: number; damping?: number } | { mass: 0.1, stiffness: 150, damping: 12 } | The spring icons grow and shrink with. Higher stiffness is faster, and low damping lets icons overshoot and wobble. |
bounce | Icons hop when clicked, like apps launching on macOS. | ||
autoHide | Slides the dock off its edge until the pointer comes near that edge of the parent. It stays out while hovered, focused or showing a menu. | ||
tiles | Draws a rounded tile behind each icon. Turn it off for bare glyphs, or when your icons are full app artwork. | ||
showLabels | Shows the label of the hovered or focused icon in a tooltip. | ||
showIndicators | Shows a dot next to items marked active, like open apps on macOS. | ||
showBadges | Shows the notification badges set on items. | ||
badgeColor | '#ff453a' | Fill color of the notification badges. | |
accentColor | '#0a84ff' | Color of the highlighted row in menus and of the keyboard focus ring. | |
| Extra class names for the dock panel. | |||
| Inline styles for the dock panel. |
itemsDockItemData[]The apps in the dock. Each item takes an icon, label and onClick, plus optional className, active (an open app, shown with a dot), badge (a number, text, or true for a plain dot) and menu. Add { separator: true } to divide groups.
[]items[].menuDockMenuItem[]Rows of the context menu that opens on right click, long press or the menu key. Rows take label, onClick, icon, checked, disabled, shortcut and items for a submenu. Add { separator: true } for a divider.
position'bottom' | 'top' | 'left' | 'right'The edge of the nearest positioned parent the dock sits on. Icons grow away from that edge and the dock stands vertically on the left and right.
'bottom'theme'dark' | 'light'Colors of the panel, tiles, labels and menus, made for dark or light pages.
'dark'baseItemSizenumberSize of each icon at rest, in px. The dock shrinks everything evenly when its parent is too small to fit it.
50magnificationnumberSize of the icon right under the pointer, in px. Set it to baseItemSize to turn magnifying off.
70distancenumberHow far from the pointer icons still grow, in px. Larger values spread the swell over more icons.
200panelHeightnumberThickness of the dock bar, in px. Icons rise out of it as they grow.
68gapnumberSpace between icons, in px.
10roundnessnumberCorner rounding of the tiles and the bar, from square at 0 to circles at 1.
0.5spring{ mass?: number; stiffness?: number; damping?: number }The spring icons grow and shrink with. Higher stiffness is faster, and low damping lets icons overshoot and wobble.
{ mass: 0.1, stiffness: 150, damping: 12 }bouncebooleanIcons hop when clicked, like apps launching on macOS.
autoHidebooleanSlides the dock off its edge until the pointer comes near that edge of the parent. It stays out while hovered, focused or showing a menu.
tilesbooleanDraws a rounded tile behind each icon. Turn it off for bare glyphs, or when your icons are full app artwork.
showLabelsbooleanShows the label of the hovered or focused icon in a tooltip.
showIndicatorsbooleanShows a dot next to items marked active, like open apps on macOS.
showBadgesbooleanShows the notification badges set on items.
badgeColorstringFill color of the notification badges.
'#ff453a'accentColorstringColor of the highlighted row in menus and of the keyboard focus ring.
'#0a84ff'Extra class names for the dock panel.
Inline styles for the dock panel.



