可用时间编辑器

New

每周可用时间编辑器,每一天在「可用/不可用」之间弹簧切换,时间段的增删带模糊滑动动效,时间通过可滚动下拉菜单选取,并可通过复制菜单将时段套用到其他天。

Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Unavailable
Sunday
Unavailable

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/availability-scheduler

API 参考

value?
WeekAvailability
defaultValue?
WeekAvailability
onChange?
((value: WeekAvailability) => void)
step?
number

Minutes between selectable times. Default 30.

30
className?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.