installation
A calendar and date picker component for Qwik. Install it, import it, bind it to a signal: that's the whole setup.
install
qwik-date 2 is in beta and works with Qwik v2 (@qwik.dev/core).
$ pnpm add -D -E qwik-date@betaKeep @beta. Until 2.0 is stable, a plain qwik-date resolves to 1.0.0, which is for Qwik v1.
usage
Import the Calendar and bind it to a signal.
src/routes/index.tsx
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
value → null
The value is a YYYY-MM-DD string, or null when no day is selected.
compatibility
Match the Qwik in your package.json.
| qwik-date | qwik | install |
|---|---|---|
| 2.x beta | v2, @qwik.dev/core | qwik-date@beta |
| 1.x | v1, @builder.io/qwik | qwik-date@1 |
2.x is ESM only, needs Node 20.19+ or 22.12+, and has zero runtime dependencies.
next
- Calendar: the props, and examples with ranges, several days and two months.
- Date Picker: the calendar in a popover, with a trigger of your own.
- Headless: the same calendar in parts, styled by you.