1. Basic Usage

Provide latitude, longitude, and an optional size. Longitude is used to derive local interpretation, while latitude and longitude together are used to compute solar context. Neither affects the underlying Umi‑Time value.

<umi-clock latitude="35.138666" longitude="-120.643473" size="350px"></umi-clock>

2. Binding Attributes

Because <umi-clock> is a native web component, attributes can be bound to variables in any framework (Angular, React, Vue, Svelte, etc.).

<umi-clock latitude={lat} longitude={lon} size="300px"></umi-clock>

3. Updating Location Imperatively

You can update the clock’s local context by changing its location programmatically:

const clock = document.querySelector("umi-clock");
clock.setLocation(40.71, -74.00); // New York City

4. Resizing the Clock

The size attribute controls the visual size:

<umi-clock size="500px"></umi-clock>
Documentation
Developer
Project