Skip to main content
Version: Next

Dock API

import { Dock } from '@editora/ui-react';

Props​

PropTypeDescription
animationDockAnimation
childrenReact.ReactNode
distancenumber | string
elevationDockElevation
gapnumber | string
idleScalenumber | string
itemSizenumber | string
labelModeDockLabelMode
labelPlacementDockLabelPlacement
liftnumber | string
magnificationnumber | string
orientationDockOrientation
paddingnumber | string
radiusnumber | string
sizeDockSize
smoothingnumber | string
toneDockTone
variantDockVariant

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Dock.Item props​

PropTypeDescription
activeboolean
askeyof JSX.IntrinsicElements
badgeReact.ReactNode
badgePropsDockItemSlotProps
childrenReact.ReactNode
disabledboolean
hrefstring
iconReact.ReactNode
iconPropsDockItemSlotProps
labelReact.ReactNode
labelPropsDockItemSlotProps
relstring
targetstring
valuestring

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-dock>​

Dock renders the ui-dock custom element from @editora/ui-core, which can also be used without React.

Attributes: animation, distance, elevation, gap, idle-scale, item-size, label-mode, label-placement, lift, magnification, orientation, padding, radius, size, smoothing, tone, variant