docs(calendar): add external controls example (#3793)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Evan Schleret
2025-04-22 15:17:17 +02:00
committed by GitHub
parent db11db6ff1
commit 13c299533f
2 changed files with 31 additions and 0 deletions

View File

@@ -223,6 +223,16 @@ name: 'calendar-other-system-example'
You can check all the available calendars on `@internationalized/date` docs.
::
### With external controls
You can control the calendar with external controls by manipulating the date passed in the `v-model`.
::component-example
---
name: 'calendar-external-controls-example'
---
::
### As a DatePicker
Use a [Button](/components/button) and a [Popover](/components/popover) component to create a date picker.