Skip to main content

Clock

Clock component displaying the current time.

Options

  • duration | boolean: if set, the duration of the session is displayed (not the actual time). Default: false.
  • format | string: time format (either HH:MM, HH:MM:SS, or HH). Default: ''.
  • className | string: class name. Default: ''.
  • style | object: CSS inline styles. Default: {}.

Examples

Live Editor
Result
ReferenceError: Provider is not defined