Configuration

Scheduling decorations

Schedule Zeenat.js decorations with timezone-safe active windows and finite durations.

Set an activation window

Use activeFrom and activeUntil for seasonal campaigns and special occasions. Strings require Z or an explicit UTC offset, which prevents server and browser timezone differences.

Decoration.tsx
<Zeenat
  preset="pakistan-defence-day"
  activeFrom="2026-09-05T00:00:00+05:00"
  activeUntil="2026-09-07T00:00:00+05:00"
/>

Stop after a duration

duration accepts milliseconds or infinite. Long activation and duration timers are chunked around browser timer limits.

Date objects

Date objects are supported, but serialized strings with explicit offsets make deployments and code review easier to reason about. Invalid or ambiguous schedule values fail validation.