Booting Environment...

Flip Clock

A retro-style mechanical flip clock component. Supports both real-time clock synchronization and target-based countdown modes.

Installation

npx raya-ui@latest add flip-clock

File Structure

your-project
components
ui
flip-clock
FlipClock.vue
FlipUnit.vue

API Reference

Props

countdown
boolean
false

If true, counts down to targetDate. Otherwise, displays the current real-time clock.

targetDate
Date | string

Required if countdown is true. The future date/time to count down to.

size
enum
"md"

Controls the scale of the clock digits. Accepts sm, md, lg, or xl.

variant
string
"default"

Color theme variant. Accepts default, secondary, destructive, outline, or muted.

showDays
enum
"auto"

Controls visibility of the days section in countdown mode. Accepts auto, always, or never.

Settings