Relative Date Label
- from @tealmac
A date field that writes the date back as today, tomorrow, in 3 days, last Friday or 2 weeks ago in the viewer's language, picking the unit that reads best. Use this when a date should be read at a glance as how far away it is, not only as a number.
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 @tealmac/relative-date-labelRegistry dependencies2
- @tealmac/date-field
- @tealmac/date-time-core
Packages0
No npm packages are installed with it.
