DateFormat
Formats dates using date-fns patterns. Supports relative time ("3 hours ago"), toggling between relative and absolute display, and auto-refreshing relative times.
Import
import { DateFormat } from 'reablocks';
DateFormat Props
| Prop | Type | Default | Description | |------|------|---------|-------------| | date | Date \| string \| number \| null | — | The date to format | | format | string | 'MM/dd/yy hh:mm:ss a' | date-fns format string | | `fromNow
[Description truncada. Veja o README completo no GitHub.]