Skip to main content
Version: 1.1.0

IUseMaximizedQuadrantResult

@spartanfx/react v1.1.0


@spartanfx/react / index / IUseMaximizedQuadrantResult

Interface: IUseMaximizedQuadrantResult

@spartanfx/react — maximized-quadrant state, controlled OR uncontrolled.

  • Uncontrolled (default): state lives internally, seeded by defaultValue.
  • Controlled: pass value (incl. null); the hook mirrors it and never owns the state. onChange always fires so a controlled parent can react.

Properties

PropertyTypeDescription
maximizedQuadrantTQuadrantKeyThe quadrant currently maximized, or null for the standard 2×2 view.
setMaximizedQuadrant(quadrantKey) => voidSet/replace the maximized quadrant (drives controlled + uncontrolled).
toggleMaximizedQuadrant(quadrantKey) => voidMaximize a quadrant, or toggle it back to null if already maximized.