Display and status
DateDisplay
DateDisplay - Formats and displays dates Supports various format options and relative time display.Public export
typescript
import { DateDisplay } from '@happyvertical/smrt-ui';- Import path
@happyvertical/smrt-ui- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
dateDate | string | number | null | undefinedYesDate to display (Date, ISO string, or timestamp)format'short' | 'medium' | 'long' | 'relative'NoDisplay formatfallbackstringNoFallback text when date is null/undefinedshowTimebooleanNoShow time along with datelocalestringNoLocale for formatting (defaults to en-CA)classstringNoOptional CSS classBindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.