Carregando…
Carregando…
Carregando…Stopwatch with start/stop/reset, lap tracking, lap count limit and time display.
Stopwatch — start, pause, lap and reset
$ npx kikitocn add stopwatch@/lib/utilsimport { Stopwatch } from "@/components/ui/cn/stopwatch/Stopwatch";
export function StopwatchExample() {
return (
<Stopwatch />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
initialTime | number | 0 | Tempo inicial em ms |
onLap | (lap: Lap) => void | undefined | Callback quando um lap é registrado |
showLaps | boolean | true | Exibe histórico de laps |
maxLaps | number | undefined | Número máximo de laps |