Skip to main content

Props

The Clock Widget component accepts the following props:

Background Color

backgroundColor: (Array of Objects) Specifies the background gradient of the clock widget. Each object in the array represents a color stop and includes two properties:

color: (String - Hex value) The color value for the stop. stop: (Number - Percentage) The percentage at which the color stop should occur along the gradient.

Rotation

rotation: (Number) Specifies the rotation of the clock widget in degrees. Valid values range from 0 to 360.

Primary Font

primaryFont: (String - Hex value) Sets the color of the clock's primary font.

Theme

theme: (Number) select the theme by specifying number from 1 to 5

For more details visit styling section