File tree Expand file tree Collapse file tree 4 files changed +25
-4
lines changed Expand file tree Collapse file tree 4 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/cae0ce6e92634878b6e1a587146d
77
77
| enablePastDates | If disabled, the picker will prevent the user from selecting anything prior to today. | ` boolean ` (default: ` true ` )
78
78
| theme | The theme name that should be assigned to the theme data-attribute. | ` string ` (default: ` '' ` )
79
79
| presetRanges | The array of present configs to replace the default set with. | ` array ` (default: [ ...] )
80
+ | includeFont | If false, the default Rubik font will not be loaded | ` boolean ` (default: ` true ` )
80
81
81
82
### Events
82
83
| Prop | Description | Default |
Original file line number Diff line number Diff line change 273
273
</ul >}]
274
274
</td >
275
275
</tr >
276
+ <tr >
277
+ <td >includeFont</td >
278
+ <td ><code >boolean</code ></td >
279
+ <td >If false, the default font "Rubik" will not be loaded.</td >
280
+ <td ><code >true</code ></td >
281
+ </tr >
276
282
</table >
277
283
</section >
278
284
304
310
</section >
305
311
306
312
<br >
313
+
307
314
<section >
308
315
<h2 >Examples</h2 >
309
316
<p >Below are different examples of how you can configure the datepicker.</p >
Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ export interface DatePickerProps {
140
140
* An array of month labels.
141
141
*/
142
142
monthLabels ?: string [ ] ;
143
+
144
+ /**
145
+ * Determines if the default font "Rubik" should be loaded.
146
+ */
147
+ includeFont ?: boolean ;
143
148
}
144
149
145
150
export interface DatePickerEvents {
Original file line number Diff line number Diff line change 172
172
' December'
173
173
];
174
174
175
+ /**
176
+ * Determines if the default font "Rubik" should be loaded.
177
+ * @type {boolean}
178
+ */
179
+ export let includeFont = true ;
180
+
175
181
/**
176
182
* The number of milliseconds in a day.
177
183
* @type {number}
1064
1070
< / div>
1065
1071
1066
1072
< svelte: head>
1067
- < link
1068
- rel= " stylesheet"
1069
- href= " https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap"
1070
- / >
1073
+ {#if includeFont}
1074
+ < link
1075
+ rel= " stylesheet"
1076
+ href= " https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap"
1077
+ / >
1078
+ {/ if }
1071
1079
< / svelte: head>
1072
1080
1073
1081
< style>
You can’t perform that action at this time.
0 commit comments