You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+17-17
Original file line number
Diff line number
Diff line change
@@ -10,34 +10,34 @@ A small date picker built with Svelte 3. Demo available here: [view docs and exa
10
10
npm i -D svelte-calendar
11
11
```
12
12
13
+
## Features
14
+
15
+
- Day, Month & Year pickers
16
+
- Responsive
17
+
- Keyboard, touch, and scroll support
18
+
- Inline & Picker modes
19
+
- Virtual/infinite grid for animation performance
20
+
- Store-driven and extensible
21
+
-[Localization](https://6edesign.github.io/svelte-calendar) using `day.js`
22
+
13
23
## Usage within svelte-kit project
14
24
15
25
When using this component within a svelte-kit application it is necessary to add its two dependencies (`just-throttle` and `dayjs`) to the `config.kit.vite.optimizeDeps.include` array in `svelte.config.js`. Eg: your config should include the following:
16
26
17
27
```js
18
28
constconfig= {
19
-
kit: {
20
-
vite: {
21
-
optimizeDeps: {
22
-
include: ['just-throttle', 'dayjs']
23
-
}
24
-
}
25
-
}
29
+
kit: {
30
+
vite: {
31
+
optimizeDeps: {
32
+
include: ['just-throttle', 'dayjs']
33
+
}
34
+
}
35
+
}
26
36
};
27
37
28
38
exportdefaultconfig;
29
39
```
30
40
31
-
## Features
32
-
33
-
- Day, Month & Year pickers
34
-
- Responsive
35
-
- Keyboard, touch, and scroll support
36
-
- Inline & Picker modes
37
-
- Virtual/infinite grid for animation performance
38
-
- Store-driven and extensible
39
-
-[Localization](https://6edesign.github.io/svelte-calendar) using `day.js`
0 commit comments