Duration
Formats millisecond values into human-readable durations (ms, s, min, hr, day, month). Auto-pluralizes units. Also exports formatDuration utility function.
Import
import { Duration } from 'reablocks';
// or utility only
import { formatDuration } from 'reablocks';
Duration Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | string | null | undefined | — | Duration in milliseconds |
emptyValue | `str |
[Description truncada. Veja o README completo no GitHub.]