Skip to content

FocusManagement

Read as Markdown

import { FocusManagement, Rectangle } from "@pibbl/core";

FocusManagement uses FocusManagementProps and wraps one recursive PibblNode subtree. It installs the Canvas as the only native focus host and adds logical focus events, source-order Tab traversal, press focus, activation, and focus-visible modality. It does not generate semantic DOM or an accessibility tree.

<FocusManagement>
<Rectangle style={{ width: 80, height: 32, fill: "#2563eb" }} />
</FocusManagement>

Try the Focus management live example.

Adds one logical focus manager to exactly one child without adding identity.

FocusManagement: PibblComponent<FocusManagementProps>

Related API: FocusManagement, PibblComponent, FocusManagementProps.

  • props — Authored component inputs, supplied through JSX or createElement. See the linked props and style types.

When called directly; Pibbl mounts this component through JSX or createElement.

FocusManagementProps

View source — packages/core/src/lib/focus/policy-components.ts:99

Read the Input, focus, and native HTML companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 272a94a. ALPHA — NOT FOR PRODUCTION USE.