Free
Pro

Countdown Timer

Counts down to a target date in real time, updating every second. Displays days, hours, minutes, and seconds in individual flip-card boxes. Emits (finished) when zero is reached.

free

Full Countdown (Days + Time)

Pass a Date or ISO string to targetDate.

06
Days
23
Hours
59
Min
59
Sec

Hours Only (No Days)

Set [showDays]="false" to hide the days segment for short-duration events.

01
Hours
59
Min
59
Sec

Custom Labels

Override the unit labels using daysLabel, hoursLabel, minutesLabel, secondsLabel.

06
Tage
23
Std
59
Min
59
Sek

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add countdown

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add countdown
// Paths are relative to aliases.components (default: src/app/components)
import { CountdownComponent } from './countdown/countdown.component';

@Component({
  selector: 'app-your-component',
  imports: [
    CountdownComponent
  ],
  template: `...`
})
export class YourComponent {}

API for countdown — generated from JSDoc in the library source.

API reference for countdown
APIMemberTypeDefaultDescription
ply-countdownclassstring''Extra host classes merged via `cn()`.
ply-countdowntargetDateDate | stringInstant the countdown ends. Accepts a `Date` or an ISO/parseable string.
ply-countdownshowDaysbooleantrueWhether to show the days unit.
ply-countdowndaysLabelunknown'Days'Label under the days value.
ply-countdownhoursLabelunknown'Hours'Label under the hours value.
ply-countdownminutesLabelunknown'Min'Label under the minutes value.
ply-countdownsecondsLabelunknown'Sec'Label under the seconds value.
ply-countdown(tick)CountdownTimeEmits on every tick with the remaining time breakdown.
ply-countdown(finished)voidEmits once when the countdown reaches zero.