mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
docs(calendar): other calendar systems (#3447)
This commit is contained in:
committed by
GitHub
parent
fb4e05c65f
commit
629c54261a
@@ -0,0 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
import { CalendarDate, HebrewCalendar } from '@internationalized/date'
|
||||
|
||||
const hebrewDate = shallowRef(new CalendarDate(new HebrewCalendar(), 5781, 1, 1))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UCalendar v-model="hebrewDate" />
|
||||
</template>
|
||||
@@ -209,6 +209,20 @@ name: 'calendar-min-max-dates-example'
|
||||
---
|
||||
::
|
||||
|
||||
### With other calendar systems
|
||||
|
||||
You can use other calenders from `@internationalized/date` to implement a different calendar system.
|
||||
|
||||
::component-example
|
||||
---
|
||||
name: 'calendar-other-system-example'
|
||||
---
|
||||
::
|
||||
|
||||
::note{to="https://react-spectrum.adobe.com/internationalized/date/Calendar.html#implementations"}
|
||||
You can check all the available calendars on `@internationalized/date` docs.
|
||||
::
|
||||
|
||||
### As a DatePicker
|
||||
|
||||
Use a [Button](/components/button) and a [Popover](/components/popover) component to create a date picker.
|
||||
|
||||
Reference in New Issue
Block a user