Date pickers let users choose dates from a visual calendar that's consistently applied wherever dates need to be selected across the interface.
selected-date: 2024-01-01
<script lang="ts" setup>
import { DatePicker, DatePickerCard } from '@returnless/focus-ui';
</script>
<template>
<DatePicker v-model="selectedDate" />
</template>Date pickers should:
Some users might find interacting with date pickers to be challenging. When you use the date picker component, always give users the option to enter the date using a text field component as well.
If you use the date picker within a popover component, then use a button to trigger the popover instead of displaying the popover when the text input gets focus. This gives users more control over their experience.