Item Size
50px
Magnification
70px
Distance
200px
Bar Height
68px
Gap
10px
Roundness
0.5

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
21 properties
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''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.
baseItemSize50Size of each icon at rest, in px. The dock shrinks everything evenly when its parent is too small to fit it.
magnification70Size of the icon right under the pointer, in px. Set it to baseItemSize to turn magnifying off.
distance200How far from the pointer icons still grow, in px. Larger values spread the swell over more icons.
panelHeight68Thickness of the dock bar, in px. Icons rise out of it as they grow.
gap10Space between icons, in px.
roundness0.5Corner 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.
bounceIcons hop when clicked, like apps launching on macOS.
autoHideSlides 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.
tilesDraws a rounded tile behind each icon. Turn it off for bare glyphs, or when your icons are full app artwork.
showLabelsShows the label of the hovered or focused icon in a tooltip.
showIndicatorsShows a dot next to items marked active, like open apps on macOS.
showBadgesShows 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.

Default[]
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.

Default'bottom'
theme'dark' | 'light'

Colors of the panel, tiles, labels and menus, made for dark or light pages.

Default'dark'
baseItemSizenumber

Size of each icon at rest, in px. The dock shrinks everything evenly when its parent is too small to fit it.

Default50
magnificationnumber

Size of the icon right under the pointer, in px. Set it to baseItemSize to turn magnifying off.

Default70
distancenumber

How far from the pointer icons still grow, in px. Larger values spread the swell over more icons.

Default200
panelHeightnumber

Thickness of the dock bar, in px. Icons rise out of it as they grow.

Default68
gapnumber

Space between icons, in px.

Default10
roundnessnumber

Corner rounding of the tiles and the bar, from square at 0 to circles at 1.

Default0.5
spring{ 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.

Default{ mass: 0.1, stiffness: 150, damping: 12 }
bounceboolean

Icons hop when clicked, like apps launching on macOS.

autoHideboolean

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.

tilesboolean

Draws a rounded tile behind each icon. Turn it off for bare glyphs, or when your icons are full app artwork.

showLabelsboolean

Shows the label of the hovered or focused icon in a tooltip.

showIndicatorsboolean

Shows a dot next to items marked active, like open apps on macOS.

showBadgesboolean

Shows the notification badges set on items.

badgeColorstring

Fill color of the notification badges.

Default'#ff453a'
accentColorstring

Color of the highlighted row in menus and of the keyboard focus ring.

Default'#0a84ff'

Extra class names for the dock panel.

Inline styles for the dock panel.