What problem does it solve?
Pimcore Studio UI requires consistent modal patterns across applications; this skill provides a coherent set of modal building blocks, including declarative Modal and WindowModal components, plus imperative hooks (useFormModal, useAlertModal, useStudioModal) to standardize dialogs, confirmations, and alerts across projects.
Core Features & Use Cases
- Declarative Modal: full control over open state, onCancel, title, and flexible content for complex UIs.
- WindowModal: draggable, resizable window-style dialogs for multi-step workflows.
- useFormModal: confirm, input, textarea, and upload dialogs with validation and async actions.
- useAlertModal: quick info, success, error, and warning alerts.
- useStudioModal: cross-iframe modal orchestration and a unified API surface.
- Choosing declarative vs imperative patterns based on UX needs and complexity.
Quick Start
Install Pimcore Studio UI dependencies, import the modal components from @pimcore/studio-ui-bundle, and render a basic modal controlled by state.