Back to components

Card

zyra-card
LayoutZyraCard

Component preview

Explore the available states and the real library behavior for this component.

Live previewZyraCard

zyra-card Playground

Control every input live and see the result instantly

Controls
variant
padding
content preset
boolean inputs
Preview

This is a simple card body with just text content inside it.

Generated Code
<zyr-card
>
  <!-- body content -->
</zyr-card>
Event Log 0
Enable clickable to fire events
All Variants Side by Side
default
Default Card

This is the default variant with header, footer and clickable enabled.

outlined
Outlined Card

This is the outlined variant with header, footer and clickable enabled.

elevated
Elevated Card

This is the elevated variant with header, footer and clickable enabled.

ghost
Ghost Card

This is the ghost variant with header, footer and clickable enabled.

Padding Variants
padding="none"

padding="none" — no padding at all

padding="sm"

padding="sm" — 12px

padding="md"

padding="md" — 20px

padding="lg"

padding="lg" — 28px

Real World Examples
Priya Sharma
UI/UX Designer
FigmaAngular
Monthly RevenueLive
₹84,200
↑ 12.4% from last month
72% of monthly goal
New component released!
ZyraTable is now available in v1.2.0
3 minutes ago
New
Delete Project

This action is permanent and cannot be undone. All data associated with this project will be deleted.

Usage code
zyra-card
import { Component } from '@angular/core';
import { ZyraButton, ZyraCard } from 'zyra-ng-ui';

@Component({
  selector: 'app-demo-card',
  standalone: true,
  imports: [ZyraButton, ZyraCard],
  template: `
    <zyra-card [hasHeader]="true" [hasFooter]="true" padding="lg">
      <div slot="header">Project summary</div>

      <p>Track progress, approvals, and quick actions inside a clean card layout.</p>

      <div slot="footer">
        <zyra-button variant="ghost" size="sm">Cancel</zyra-button>
        <zyra-button variant="primary" size="sm">Open</zyra-button>
      </div>
    </zyra-card>
  `,
})
export class DemoCardComponent {}
Header and footer slotsClickable mode supportMultiple visual variants