components/drag
Labs · 57 / 64

Drag

ui.interaction

Dragging and a horizontal resize handle.

BEHAVIOR CONTRACT

Pointer capture, threshold, grab / grabbing cursors and click suppression are handled by ui.interaction.

RECORDED INTERACTION

The harness drags the box; state goes from idle to dragging.

View source on GitHubexamples/storybook/stories.zig:4264

The story's verbatim source from the Storybook (zenit 4c50245 2026-10-01). W is ui.widgets; col / row / label are small Storybook layout helpers.

zenit · Dual-licensedFree for open-source projects under GPL-3.0-only; closed-source or commercial products need a commercial license.Contact the author: zongyi.xzy#gmail.com (replace # with @)zenit 4c50245 2026-10-01