@cocokits/angular-overlay
v1.1.0
Published
The `@cocokits/angular-overlay` package is part of CDK and offers a robust set of utilities and components designed to manage floating UI elements within your Angular applications. With the help of this overlay system, you can build flexible and dynamic U
Downloads
17
Readme
@cocokits/angular-overlay
The @cocokits/angular-overlay
package is part of CDK and offers a robust set of utilities and components designed to manage floating UI elements within your Angular applications. With the help of this overlay system, you can build flexible and dynamic UI elements such as modals, tooltips, popups, and dropdowns, enhancing the overall user experience with non-intrusive, context-sensitive content.
This package includes the following:
OverlayComponent
OverlayService
OverlayRef
OverlayComponent
The OverlayComponent
is a customizable floating UI element that can be dynamically positioned over the main content. It is perfect for creating temporary UI components such as modals, popups, or dropdowns.
Features:
- Dynamic Positioning: Automatically places overlays in an optimal position relative to the trigger element or viewport, ensuring a smooth user experience across different screen sizes and contexts.
- Dismissable Interactions: The overlay can be closed by user interactions such as clicking outside the element or pressing the escape key, ensuring intuitive and seamless control over temporary elements.
- Backdrop Support: Includes optional backdrop functionality to dim the main content, allowing users to stay focused on the overlay element while subtly drawing attention to the interactive area.
OverlayService
The OverlayService
provides the core functionality for creating and managing overlays in your application. It handles the lifecycle of overlays, positioning logic,