From 931041ced6ad185268ea5b4f5cbf3663974e198c Mon Sep 17 00:00:00 2001 From: Valentin Hutter Date: Thu, 18 Jan 2024 01:07:58 +0100 Subject: [PATCH] docs(calendar): add available slots + one example --- .../src/content/docs/components/calendar.md | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/apps/www/src/content/docs/components/calendar.md b/apps/www/src/content/docs/components/calendar.md index ccdc9971..7fa0c021 100644 --- a/apps/www/src/content/docs/components/calendar.md +++ b/apps/www/src/content/docs/components/calendar.md @@ -56,5 +56,40 @@ import { Calendar } from '@/components/ui/calendar' ``` -See the [VCalendar](https://vcalendar.io/getting-started/installation.html) documentation for more information. +The API is essentially the same, i.e. props and slots. See the [VCalendar](https://vcalendar.io/getting-started/installation.html) documentation for more information. +### Slots + +The slots available are [those currently supported](https://github.com/nathanreyes/v-calendar/blob/v3.1.2/src/components/Calendar/CalendarSlot.vue#L16-L28) by VCalendar, namely : + +- `day-content` +- `day-popover` +- `dp-footer` +- `footer` +- `header-title-wrapper` +- `header-title` +- `header-prev-button` +- `header-next-button` +- `nav` +- `nav-prev-button` +- `nav-next-button` +- `page` +- `time-header` + +Example using the `dp-footer` slot: + +```vue + + + +``` \ No newline at end of file