|
1 | 1 | <!-- This file was automatic generated. Do not edit it manually --> |
2 | 2 |
|
| 3 | +<PropsTable :data="[ |
| 4 | + { |
| 5 | + 'name': 'as', |
| 6 | + 'description': '<p>The element or component this component should render as. Can be overwritten by <code>asChild</code>.</p>\n', |
| 7 | + 'type': 'AsTag | Component', |
| 8 | + 'required': false, |
| 9 | + 'default': '\'div\'' |
| 10 | + }, |
| 11 | + { |
| 12 | + 'name': 'asChild', |
| 13 | + 'description': '<p>Change the default rendered element for the one passed as a child, merging their props and behavior.</p>\n<p>Read our <a href=\'https://www.reka-ui.com/docs/guides/composition\'>Composition</a> guide for more details.</p>\n', |
| 14 | + 'type': 'boolean', |
| 15 | + 'required': false |
| 16 | + }, |
| 17 | + { |
| 18 | + 'name': 'calendarLabel', |
| 19 | + 'description': '<p>The accessible label for the calendar</p>\n', |
| 20 | + 'type': 'string', |
| 21 | + 'required': false |
| 22 | + }, |
| 23 | + { |
| 24 | + 'name': 'defaultPlaceholder', |
| 25 | + 'description': '<p>The default placeholder date</p>\n', |
| 26 | + 'type': 'DateValue', |
| 27 | + 'required': false |
| 28 | + }, |
| 29 | + { |
| 30 | + 'name': 'defaultValue', |
| 31 | + 'description': '<p>The default value for the calendar</p>\n', |
| 32 | + 'type': 'DateValue', |
| 33 | + 'required': false |
| 34 | + }, |
| 35 | + { |
| 36 | + 'name': 'dir', |
| 37 | + 'description': '<p>The reading direction of the calendar when applicable. <br> If omitted, inherits globally from <code>ConfigProvider</code> or assumes LTR (left-to-right) reading mode.</p>\n', |
| 38 | + 'type': '\'ltr\' | \'rtl\'', |
| 39 | + 'required': false |
| 40 | + }, |
| 41 | + { |
| 42 | + 'name': 'disabled', |
| 43 | + 'description': '<p>Whether the calendar is disabled</p>\n', |
| 44 | + 'type': 'boolean', |
| 45 | + 'required': false, |
| 46 | + 'default': 'false' |
| 47 | + }, |
| 48 | + { |
| 49 | + 'name': 'disableDaysOutsideCurrentView', |
| 50 | + 'description': '<p>Whether or not to disable days outside the current view.</p>\n', |
| 51 | + 'type': 'boolean', |
| 52 | + 'required': false, |
| 53 | + 'default': 'false' |
| 54 | + }, |
| 55 | + { |
| 56 | + 'name': 'fixedWeeks', |
| 57 | + 'description': '<p>Whether or not to always display 6 weeks in the calendar</p>\n', |
| 58 | + 'type': 'boolean', |
| 59 | + 'required': false, |
| 60 | + 'default': 'false' |
| 61 | + }, |
| 62 | + { |
| 63 | + 'name': 'initialFocus', |
| 64 | + 'description': '<p>If true, the calendar will focus the selected day, today, or the first day of the month depending on what is visible when the calendar is mounted</p>\n', |
| 65 | + 'type': 'boolean', |
| 66 | + 'required': false, |
| 67 | + 'default': 'false' |
| 68 | + }, |
| 69 | + { |
| 70 | + 'name': 'isDateDisabled', |
| 71 | + 'description': '<p>A function that returns whether or not a date is disabled</p>\n', |
| 72 | + 'type': 'Matcher', |
| 73 | + 'required': false |
| 74 | + }, |
| 75 | + { |
| 76 | + 'name': 'isDateUnavailable', |
| 77 | + 'description': '<p>A function that returns whether or not a date is unavailable</p>\n', |
| 78 | + 'type': 'Matcher', |
| 79 | + 'required': false |
| 80 | + }, |
| 81 | + { |
| 82 | + 'name': 'locale', |
| 83 | + 'description': '<p>The locale to use for formatting dates</p>\n', |
| 84 | + 'type': 'string', |
| 85 | + 'required': false |
| 86 | + }, |
| 87 | + { |
| 88 | + 'name': 'maxValue', |
| 89 | + 'description': '<p>The maximum date that can be selected</p>\n', |
| 90 | + 'type': 'DateValue', |
| 91 | + 'required': false |
| 92 | + }, |
| 93 | + { |
| 94 | + 'name': 'minValue', |
| 95 | + 'description': '<p>The minimum date that can be selected</p>\n', |
| 96 | + 'type': 'DateValue', |
| 97 | + 'required': false |
| 98 | + }, |
| 99 | + { |
| 100 | + 'name': 'modelValue', |
| 101 | + 'description': '<p>The controlled checked state of the calendar</p>\n', |
| 102 | + 'type': 'DateValue | DateValue[]', |
| 103 | + 'required': false |
| 104 | + }, |
| 105 | + { |
| 106 | + 'name': 'multiple', |
| 107 | + 'description': '<p>Whether multiple dates can be selected</p>\n', |
| 108 | + 'type': 'boolean', |
| 109 | + 'required': false, |
| 110 | + 'default': 'false' |
| 111 | + }, |
| 112 | + { |
| 113 | + 'name': 'nextPage', |
| 114 | + 'description': '<p>A function that returns the next page of the calendar. It receives the current placeholder as an argument inside the component.</p>\n', |
| 115 | + 'type': '((placeholder: DateValue) => DateValue)', |
| 116 | + 'required': false |
| 117 | + }, |
| 118 | + { |
| 119 | + 'name': 'numberOfMonths', |
| 120 | + 'description': '<p>The number of months to display at once</p>\n', |
| 121 | + 'type': 'number', |
| 122 | + 'required': false, |
| 123 | + 'default': '1' |
| 124 | + }, |
| 125 | + { |
| 126 | + 'name': 'pagedNavigation', |
| 127 | + 'description': '<p>This property causes the previous and next buttons to navigate by the number of months displayed at once, rather than one month</p>\n', |
| 128 | + 'type': 'boolean', |
| 129 | + 'required': false, |
| 130 | + 'default': 'false' |
| 131 | + }, |
| 132 | + { |
| 133 | + 'name': 'placeholder', |
| 134 | + 'description': '<p>The placeholder date, which is used to determine what month to display when no date is selected</p>\n', |
| 135 | + 'type': 'DateValue', |
| 136 | + 'required': false |
| 137 | + }, |
| 138 | + { |
| 139 | + 'name': 'preventDeselect', |
| 140 | + 'description': '<p>Whether or not to prevent the user from deselecting a date without selecting another date first</p>\n', |
| 141 | + 'type': 'boolean', |
| 142 | + 'required': false, |
| 143 | + 'default': 'false' |
| 144 | + }, |
| 145 | + { |
| 146 | + 'name': 'prevPage', |
| 147 | + 'description': '<p>A function that returns the previous page of the calendar. It receives the current placeholder as an argument inside the component.</p>\n', |
| 148 | + 'type': '((placeholder: DateValue) => DateValue)', |
| 149 | + 'required': false |
| 150 | + }, |
| 151 | + { |
| 152 | + 'name': 'readonly', |
| 153 | + 'description': '<p>Whether the calendar is readonly</p>\n', |
| 154 | + 'type': 'boolean', |
| 155 | + 'required': false, |
| 156 | + 'default': 'false' |
| 157 | + }, |
| 158 | + { |
| 159 | + 'name': 'weekdayFormat', |
| 160 | + 'description': '<p>The format to use for the weekday strings provided via the weekdays slot prop</p>\n', |
| 161 | + 'type': '\'narrow\' | \'short\' | \'long\'', |
| 162 | + 'required': false, |
| 163 | + 'default': '\'narrow\'' |
| 164 | + }, |
| 165 | + { |
| 166 | + 'name': 'weekStartsOn', |
| 167 | + 'description': '<p>The day of the week to start the calendar on</p>\n', |
| 168 | + 'type': '0 | 1 | 2 | 3 | 4 | 5 | 6', |
| 169 | + 'required': false, |
| 170 | + 'default': '0' |
| 171 | + } |
| 172 | +]" /> |
| 173 | + |
| 174 | +<EmitsTable :data="[ |
| 175 | + { |
| 176 | + 'name': 'update:modelValue', |
| 177 | + 'description': '<p>Event handler called whenever the model value changes</p>\n', |
| 178 | + 'type': '[date: DateValue]' |
| 179 | + }, |
| 180 | + { |
| 181 | + 'name': 'update:placeholder', |
| 182 | + 'description': '<p>Event handler called whenever the placeholder value changes</p>\n', |
| 183 | + 'type': '[date: DateValue]' |
| 184 | + } |
| 185 | +]" /> |
| 186 | + |
3 | 187 | <SlotsTable :data="[ |
4 | 188 | { |
5 | 189 | 'name': 'date', |
|
34 | 218 | { |
35 | 219 | 'name': 'modelValue', |
36 | 220 | 'description': '<p>The current date of the calendar</p>\n', |
37 | | - 'type': 'CalendarDate | CalendarDateTime | ZonedDateTime' |
38 | | - }, |
| 221 | + 'type': 'DateValue | DateValue[] | undefined' |
| 222 | + } |
| 223 | +]" /> |
| 224 | + |
| 225 | +<MethodsTable :data="[ |
39 | 226 | { |
40 | | - 'name': 'maxDate', |
41 | | - 'description': '<p>The maximum selected date of the calendar</p>\n', |
42 | | - 'type': 'CalendarDate | CalendarDateTime | ZonedDateTime | undefined' |
| 227 | + 'name': 'isDateDisabled', |
| 228 | + 'description': '<p>A function that returns whether or not a date is disabled</p>\n', |
| 229 | + 'type': 'Matcher' |
43 | 230 | }, |
44 | 231 | { |
45 | | - 'name': 'minDate', |
46 | | - 'description': '<p>The minimum selected date of the calendar</p>\n', |
47 | | - 'type': 'CalendarDate | CalendarDateTime | ZonedDateTime | undefined' |
| 232 | + 'name': 'isDateUnavailable', |
| 233 | + 'description': '<p>A function that returns whether or not a date is unavailable</p>\n', |
| 234 | + 'type': 'Matcher' |
48 | 235 | } |
49 | 236 | ]" /> |
0 commit comments