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

A card groups related content and actions into one meaningful block. Use it for dashboard widgets, KPI panels, previews, summaries, settings sections, media content, or form sections where the content belongs together.

Use it for:
  • Content groups: Keep related text, data, media, and controls together.
  • Dashboard panels: Build widgets, metrics, summaries, and compact admin panels.
  • Structured sections: Add headers, titles, subtitles, avatars, images, actions, and footers.
  • Local actions: Place actions that apply only to the card content.

Do not use Card as a generic page layout wrapper, a decorative border, a modal, a drawer, or a nested card inside another card. Use Tailwind layout utilities for page structure and card tokens for component styling.

Card API

PropTypeDefault
appearance
The visual appearance of the card.
'raised' | 'outlined' | 'filled''outlined'

Card Actions API

PropTypeDefault
align
The horizontal alignment of the actions.
'start' | 'center' | 'end' | 'between''start'

Directives

SelectorDescription
ngs-card-headerHeader section of the card.
ngs-card-titleTitle within the card header.
ngs-card-subtitleSubtitle within the card header.
ngs-card-contentMain content section of the card.
ngs-card-footerFooter section of the card.
ngs-card-imageImage section of the card.
ngs-card-avatarAvatar section within the card header.
ngs-card-asideAside section for side-by-side card layout.