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.