@@ -22,12 +22,12 @@ npm install -D date-picker-svelte
2222<DateInput bind:value={date} />
2323```
2424
25- ## < a id =" dateinput " / >DateInput
25+ < h2 id =" dateinput " >DateInput</ h2 >
2626
2727Component with an input field that shows the DatePicker component on focus.
2828The component will not assign a date value until a specific date is selected in the picker or entered into the field.
2929
30- ### < a id =" props " / >Props
30+ < h3 id =" props " >Props</ h3 >
3131
3232| Prop | Type | Description |
3333| :----------------------- | :-------------------------------------------- | :---------------------------------------------------------- |
@@ -45,7 +45,7 @@ The component will not assign a date value until a specific date is selected in
4545| ` dynamicPositioning ` | bool | Dynamicly postions the date popup to best fit on the screen |
4646| ` locale ` | Locale | Locale object for internationalization |
4747
48- #### < a id =" format-string " / >Format string
48+ < h4 id =" format-string " >Format string</ h4 >
4949
5050Example format string: ` yyyy-MM-dd HH:mm:ss `
5151
@@ -59,12 +59,12 @@ Example format string: `yyyy-MM-dd HH:mm:ss`
5959| ` mm ` | 59 |
6060| ` ss ` | 59 |
6161
62- ## < a id =" datepicker " / >DatePicker
62+ < h2 id =" datepicker " >DatePicker</ h2 >
6363
6464Component with a calendar for choosing a date.
6565The component will not assign a date value until a specific date is selected in the picker.
6666
67- ### < a id =" datepicker-props " / >Props
67+ < h3 id =" datepicker-props " >Props</ h3 >
6868
6969| Prop | Type | Description |
7070| :----------------------- | :-------------------------------------------- | :--------------------------------------------------- |
@@ -75,17 +75,17 @@ The component will not assign a date value until a specific date is selected in
7575| ` locale ` | Locale | Locale object for internationalization |
7676| ` browseWithoutSelecting ` | bool | Wait with updating the date until a date is selected |
7777
78- ## < a id =" internationalization " / >Internationalization
78+ < h2 id =" internationalization " >Internationalization</ h2 >
7979
80- ### < a id =" locale " / >` Locale `
80+ < h3 id =" locale " >`Locale`</ h3 >
8181
8282Object to support internationalization. Properties (all are optional):
8383
8484- ` weekdays ` : Array of weekdays in short form, Sunday to Monday. Default: ` ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'] `
8585- ` months ` : Array of month names, January to December. Default: ` ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] `
8686- ` weekStartsOn ` : The day the week starts on, 0 = Sunday. Default: ` 1 `
8787
88- ### < a id =" localefromdatefnslocale " / >` localeFromDateFnsLocale `
88+ < h3 id =" localefromdatefnslocale " >`localeFromDateFnsLocale`</ h3 >
8989
9090If you use [ date-fns] ( https://date-fns.org/ ) , you can create a Locale object by passing a date-fns locale to this function:
9191
@@ -100,7 +100,7 @@ If you use [date-fns](https://date-fns.org/), you can create a Locale object by
100100< DatePicker bind: value= {date} {locale} / >
101101```
102102
103- ## < a id =" css-variables " / >CSS variables
103+ < h2 id =" css-variables " >CSS variables</ h2 >
104104
105105Colors:
106106
0 commit comments