Dock API
import { Dock } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
animation | DockAnimation | |
children | React.ReactNode | |
distance | number | string | |
elevation | DockElevation | |
gap | number | string | |
idleScale | number | string | |
itemSize | number | string | |
labelMode | DockLabelMode | |
labelPlacement | DockLabelPlacement | |
lift | number | string | |
magnification | number | string | |
orientation | DockOrientation | |
padding | number | string | |
radius | number | string | |
size | DockSize | |
smoothing | number | string | |
tone | DockTone | |
variant | DockVariant |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Dock.Item props
| Prop | Type | Description |
|---|---|---|
active | boolean | |
as | keyof JSX.IntrinsicElements | |
badge | React.ReactNode | |
badgeProps | DockItemSlotProps | |
children | React.ReactNode | |
disabled | boolean | |
href | string | |
icon | React.ReactNode | |
iconProps | DockItemSlotProps | |
label | React.ReactNode | |
labelProps | DockItemSlotProps | |
rel | string | |
target | string | |
value | string |
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