BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/washiveil/glass-date-picker

Glass Date Picker

washiveil/glass-date-picker
FreeComponent

Date picker — glass field trigger, calendar in a strong-glass popover.

Install it

npx shadcn@latest add https://washiveil.alexchih.com/r/glass-date-picker.json

Source

registry/washiveil/ui/glass-date-picker.tsxwashiveil.alexchih.com/r/glass-date-picker.json
1'use client'
2
3import * as React from 'react'
4import { CalendarIcon } from 'lucide-react'
5
6import { cn } from '@/lib/utils'
7import { GlassButton } from './glass-button'
8import { GlassPopover, GlassPopoverContent, GlassPopoverTrigger } from './glass-popover'
9import { GlassCalendar } from './glass-calendar'
10
11export interface GlassDatePickerProps {
12 value?: Date
13 onValueChange?: (date: Date | undefined) => void
14 placeholder?: string
15 className?: string
16 /** Custom date formatter. Defaults to Intl.DateTimeFormat with long month. */
17 formatDate?: (date: Date) => string
18}
19
20const defaultFormatDate = (date: Date) =>
21 new Intl.DateTimeFormat(undefined, {
22 year: 'numeric',
23 month: 'long',
24 day: 'numeric',
25 }).format(date)
26
27function GlassDatePicker({
28 value,
29 onValueChange,
30 placeholder = 'Pick a date',
31 className,
32 formatDate = defaultFormatDate,
33}: GlassDatePickerProps) {
34 const [open, setOpen] = React.useState(false)
35 const [mounted, setMounted] = React.useState(false)
36
37 React.useEffect(() => {
38 setMounted(true)
39 }, [])
40
41 let displayText: string | undefined
42 if (value) {
43 // Before mount, render a deterministic ISO-like fallback so server/client
44 // HTML is identical. After mount, swap to the locale-aware formatter.
45 displayText = mounted ? formatDate(value) : value.toISOString().slice(0, 10)
46 }
47
48 return (
49 <GlassPopover open={open} onOpenChange={setOpen}>
50 <GlassPopoverTrigger asChild>
51 <GlassButton
52 variant="secondary"
53 className={cn(
54 'w-full justify-start rounded-xl font-normal',
55 !value && 'text-muted-foreground',
56 className,
57 )}
58 >
59 <CalendarIcon className="mr-2 size-4 text-muted-foreground" />
60 {displayText ?? placeholder}
61 </GlassButton>
62 </GlassPopoverTrigger>
63 <GlassPopoverContent className="w-auto p-0">
64 <GlassCalendar
65 mode="single"
66 selected={value}
67 onSelect={(date) => {
68 onValueChange?.(date)
69 setOpen(false)
70 }}
71 autoFocus
72 />
73 </GlassPopoverContent>
74 </GlassPopover>
75 )
76}
77GlassDatePicker.displayName = 'GlassDatePicker'
78
79export { GlassDatePicker }

What it pulls in

npm packages

  • react-day-picker
  • lucide-react

Other registry items

  • https://washiveil.alexchih.com/r/theme.json
  • https://washiveil.alexchih.com/r/glass-popover.json
  • https://washiveil.alexchih.com/r/glass-calendar.json
  • https://washiveil.alexchih.com/r/glass-button.json

Files it writes

  • registry/washiveil/ui/glass-date-picker.tsx

Facts

Registry
washiveil
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

washiveil.alexchih.com tochny/washiveil on GitHub Raw registry item This item as JSON

More from washiveil

All 58 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Ambient Fieldambient-fieldwashiveilComponentsFreeno deps
ChipchipwashiveilComponentsFree1 dep
Code Badgecode-badgewashiveilComponentsFreeno deps
Glass Accordionglass-accordionwashiveilComponentsFree2 deps
Glass Alertglass-alertwashiveilComponentsFree1 dep
Glass Alert Dialogglass-alert-dialogwashiveilComponentsFree1 dep
Glass Aspect Ratioglass-aspect-ratiowashiveilComponentsFree1 dep
Glass Avatarglass-avatarwashiveilComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex