RelativeTime
- from @ouro
How long ago (or how soon) something happens, in the reader's language: "3 days ago", "yesterday", "in 5 minutes", "now", kept current while it shows.
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 @ouro/relative-timeComponent source
No live preview has been built for this component yet.
Registry dependencies5
- @ouro/lib-class-name-check
- @ouro/lib-cn
- @ouro/lib-env
- @ouro/lib-use-dev-messages
- @ouro/local-date
Packages0
No npm packages are installed with it.