1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month🚨 Slop police🚨 Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. bollard
  3. Relative Date Input

Relative Date Input

ui

Reads "next Fri", "in 2 weeks", "the 15th" or "23 Oct" against today with date-fns. When a phrase can mean two dates ("next Friday" on a Wednesday, "the 10th" once passed), it shows both and waits for a pick, then offers a rewrite to the explicit date.

pnpm dlx shadcn@latest add "https://bollard-ui.vercel.app/r/relative-date-input.json"
Premium blocks for shadcn/uiShadcnblocks.com · AffiliateExplore
  • lucide-react
  • date-fns
  • motion
    @ui/relative-date-input.tsx