@berlitz/timer

Timer component for the Max Design System

Usage no npm install needed!

<script type="module">
  import berlitzTimer from 'https://cdn.skypack.dev/@berlitz/timer';
</script>

README

Timer npm version

This component will count down the time remaining to complete the online placement test.

Installation

yarn add @berlitz/timer

Props

Argument Type Required Default descriptions
seconds number Yes null sets the initial state of time remaining
onTimerComplete func No () => {} this func is called when the time lapse

Usage

<Timer onTimerComplete={() => console.log('Done!')} seconds={60} />