tencent cloud

Tencent Cloud Agent Development Platform

Release Notes and Announcements
Release Notes
Product Announcement
Product Introduction
Product Overview
Advantages
Use Cases
Model Introduction
Purchase Guide
Package Subscription
Previous Version
Getting Started
Agent Application and Its Three Modes
Creating a "Content Summary Assistant" in Standard Mode
Creating a “Webpage Scraping Assistant” in Single Workflow Mode
Creating a “Stand-up Comedy Content Creation Assistant” in Multi-Agent Mode
Operation Guide
Application Development
Workflow
Multi-Agent
Knowledge Base
Widget
Plugin Marketplace
Model List 
Prompt Templates
Application Templates
Platform Management
Business, Workspace and Permissions
API Documentation
History
API Category
Making API Requests
Atomic Capability APIs
Operation Optimization APIs
Document Library APIs
Q&A Database APIs
Knowledge Tag APIs
Application Management APIs
Enterprise Management APIs
Billing APIs
Release Management APIs
Dialogue Endpoint APIs
Data Statistics APIs
Data Types
Error Codes
Application API Documentation
Dialogue API Overview
Dialog API Documentation (WebSocket)
Dialog API Documentation (HTTP SSE)
Image Chat or File Chat (Real-time Document Parsing + Chat)
Offline Document Upload
Tencent Cloud Agent Development Platform Operation COS Guide
ADP Document Parsing Protocol
FAQs
Product FAQs
Technical FAQs
Related Agreements
Tencent Cloud Agent Development Platform Service Level Agreement
Tencent Cloud Agent Development Platform Service Specific Terms
Tencent Cloud Agent Development Platform Privacy Policy
Tencent Cloud Agent Development Platform Data Processing and Security Agreement
Open-Source License Statement
Lighthouse OpenClaw Connector Plugin Service Agreement
Contact Us
Glossary

Countdown

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-02-03 15:56:41

Component Feature

Countdown component for displaying remaining time, customizable style and complete callback.

Basic Usage

Set the total duration and customize the display text for prefix and suffix.
Template example:
<Countdown duration={60} prefix="remaining time: " suffix=" seconds" />
Effect display as follows:




Attribute Description

Property Name
Type
Description
Default value
duration
number
Total Countdown Duration (Seconds)
-
prefix
string
Countdown prefix text
-
suffix
string
Countdown suffix text
-
size
"xs" | "sm" | "md" | "lg" | "xl"
Component size (align with Text)
"md"
color
string | ThemeColor
text color
-
onComplete
ActionConfig
Action triggered when countdown ends
-
Note:
★ Marked with required attribute.

Color Configuration

color property supports the following types:
Text color tokens, such as "text-primary", "text-secondary".
Primitive color tokens, such as "blue-500", "red-600".
CSS color string, such as "#FF0000", "rgb(255, 0, 0)".
Theme-aware object{ "light": "#000000", "dark": "#FFFFFF" }.

Usage Examples

Template example:
<Card>
<Title value="limited time offer" />
<Countdown
duration={3600}
prefix="Countdown to end : "
size="lg"
color={{ light: "#E34D59", dark: "#F66F6A" }}
onComplete={{
type: "show_message",
payload: { message: "Promotion stopped" }
}}
/>
</Card>
Effect display as follows:




Display Format

The countdown will automatically adjust the displayed content based on the remaining time.
Less than 1 minute: only display seconds, for example 59 seconds.
Less than 1 hour: display minutes and seconds, for example 12 minutes 30 seconds.
1 hour or more: display hours, minutes and seconds, for example 1 hour 15 minutes 20 seconds.


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan