Timestamp — Auto
- from @astryx
- by Astryx
Auto format that shows relative time for recent dates and switches to the full date for older ones. The default choice for most use cases.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @astryx/example-timestamp-autoRegistry dependencies0
The CLI adds no other registry items with this one.
