useDockPosition

The screen edge an AppDock is pinned to. The viewport dock shares one persisted edge; a dock scoped to a container gets its own with createDockPosition.

Install: pnpm add-composable useDockPosition

Moving the viewport dock

Any component can move the dock. AppDock animates the change itself.

A dock inside a container

Pass an independent position so the container dock does not move the page one.

API