Documentation
Marketing Components
Countdown

Countdown

A customizable React countdown component that dynamically displays only active time units, supporting multiple formats and precise millisecond accuracy.

Installation

Install the package

npm i @start-base/start-ui

Add the styles

To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.

app/layout.tsx
import "@start-base/start-ui/styles.css";

Usages

Default

With Separator

With Labels

Labels Under

In Boxes

API

NameTypeDefaultDescription
dateDate - numberCountdown Date
showDayboleantrueShow day
showHourboleantrueShow hour
showMinuteboleantrueShow minute
showSecondboleantrueShow second
typestringdefaultwithSeparator - withLabels - labelsUnder - inBoxes - default
itemClassNamestringItem className
rootClassNamestringRoot className
valueClassNamestringValue className
labelClassNamestringLabel className