Skip to content

[pickers] Tooltip above the first selected date (to showcase minimum stay required) #12248

@marcel925

Description

@marcel925

Summary

Hi team. We are using the @mui/x-date-pickers-pro component DateRangePicker for AirBnb-like functionality - for the user to select which dates they would like to stay at an apartment.

Many apartment owners set a minimum number of dates that they want to allow. We would like to communicate the minimum number of days to the user, as a tooltip on top of the first date selected.

Is this a feature that might get built soon? Alternatively, any advice on how we can achieve this?

Thank you @mui team for the amazing project.

Examples

image_airbnb_tooltip_feature

Motivation

We currently disable the disallowed dates, but that's not a great user experience, as the minimum dates required is sometimes weeks or even months, so it looks like everything is disabled when a user is on a mobile screen and seeing only 1 month at a time.

Search keywords: date range picker daterangepicker tooltip

Search keywords:

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentationscope: pickersChanges or issues related to the pickers product

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions