Date
Last modified by Manuel Leduc on 2024/11/25 16:18
Description
The date extension provides UI components to display localized dates.
User
N/A
Admin
N/A
Developer
Package name @xwiki/cristal-date-ui
Date
- name: Date
Props
type Props = { date: Date }
Usage
<script type="ts" setup>
import { Date } from "@xwiki/cristal-date-ui";
</script>
<template>
<!-- Display the current date in the current locale. -->
<date :date="new Date()" />
</template>
import { Date } from "@xwiki/cristal-date-ui";
</script>
<template>
<!-- Display the current date in the current locale. -->
<date :date="new Date()" />
</template>
Display the provided date in a localized form.