Urgent.News

What's breaking now, across thousands of outlets.

Tech

shadcn's date picker lists presets, but its visible code has none

The shadcn/ui date picker page says it has "range and presets." The visible code has no presets, so you will write them yourself. This article covers the range picker the page does show, adds the presets in code, and explains which variant to use for each form. It ends with what OTF can and cannot claim about its kits. What the shadcn page covers The page describes the component as "A date picker…

The article discusses the shadcn/ui date picker, which lists range and presets as its features. However, the visible code does not include any presets, and the article aims to fill this gap by providing a code example for a range picker with presets. The article covers the range picker feature shown on the shadcn/ui page and adds the presets in code, explaining which variant to use for each form. It also includes a brief overview of the other variants offered by the date picker component.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Evidence Grades for Agent Claims: Terms, Branches, and Six Leaves

A composite night review, not a logged incident from this account, starts with a ticket already marked ready to close. Three agent notes sit on it. One says the suite passed.

  • Agent claims undergo a structured grading process with limited decision-making capabilities
  • Evidence packets contain job ID, command, exit code, and log excerpt for grading
  • Six leaves in the grading system handle different claim sources and actions

More from Tuesday 13 October →