Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Custom Inputs
Select
Components
Components
78
Micro Charts
Navigation
Libraries
Content Editor
Data View
Form Builder
Image Designer
Kanban Board
PDF Viewer
Video Player
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Buy License

Card Overlay

The Card Overlay component shows contextual content on top of a card, image, or bounded container when the user hovers it. Use it to reveal quick actions such as view, open, preview, or edit without changing the underlying card layout.

Use it for:
  • Hover actions: Reveal one or two actions over a card or image.
  • Media previews: Add a view or preview action over visual content.
  • Contextual controls: Keep secondary actions hidden until the user focuses on the item.
  • Bounded overlays: Use ngsCardOverlayContainer so the overlay is positioned and clipped inside the target.

Do not use Card Overlay for popovers, tooltips, menus, loading states, long text, complex forms, or actions that must always be visible.

API reference for Card Overlay

import { CardOverlay, CardOverlayContainerDirective } from '@ngstarter/components/card-overlay';

Properties

PropTypeDefault
withTranslate
Whether the overlay should have a translate effect.
booleanfalse
withBlur
Whether the overlay should have a blur effect.
booleanfalse
disabled
Whether the overlay is disabled.
booleanfalse

Directives

SelectorDescription
ngsCardOverlayContainer
Selector for the card overlay container directive. Sets position relative and overflow hidden.