@beyonk/svelte-datepicker

中文文档
13.0.5发布于 2026/07/15MIT近 30 天下载 3103
原始使用文档
文档目录5 节
  1. Svelte Datepicker
  2. Svelte Kit Support
  3. Usage
  4. Contributing
  5. Tests




Svelte Datepicker

js-standard-style svelte-v3 publish

This is a near total rewrite of the excellent Svelte Calendar. It provides:

  • Calendar
  • Date Picker
  • Date Range Picker
  • Time Selection
  • Better Responsiveness
  • Improved theming
  • Context-aware theming
  • Toolbar to avoid awkward bindings
  • Works in tough situations such as inside iframes

Roadmap:

  • Re-introduce Keyboard Support
  • Add code-samples to docs
  • Add legend for keyboard shortcuts [h for Help]

Svelte Kit Support

Due to the way dayjs is packaged, the following configuration is required to get this working with SvelteKit:

const config = {
  kit: {
    target: "#svelte",
    vite: {
      ssr: {
        noExternal: [ 'dayjs' ]
      }
    }
  }
}

Usage

Contributing

Tests

Tests written in uvu

npm run test

版本与发布记录

@beyonk/svelte-datepicker 共发布 27 个版本,首次发布于 2020/12/02;过去 12 个月发布了 1 个版本。

版本发布日期距今
13.0.5latest2026/07/153 个月前
13.0.42024/01/092 年前
13.0.32023/08/243 年前
12.0.12022/04/224 年前
12.0.02022/01/254 年前
11.0.22021/07/195 年前

关于 @beyonk/svelte-datepicker 的常见问题

如何安装 @beyonk/svelte-datepicker?

在项目目录运行 npm install @beyonk/svelte-datepicker,或使用 pnpm add / yarn add / bun add。

@beyonk/svelte-datepicker 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/beyonk__svelte-datepicker 是否存在。

@beyonk/svelte-datepicker 可以商用吗?

@beyonk/svelte-datepicker 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@beyonk/svelte-datepicker 的下载量有多少?

根据 npm 官方下载统计,@beyonk/svelte-datepicker 在 2026/10/08 – 2026/11/06 这 30 天内被下载 3,103 次,日均约 103 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@beyonk/svelte-datepicker 还在维护吗?

最新版本 13.0.5 发布于 2026/07/15(3 个月前);至今共发布 27 个版本,其中过去 12 个月发布了 1 个;首次发布于 2020/12/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。