Skip to content

Date range vertical layout prop #312

Description

@manuweg

add a layout prop to the datepicker to allow the date range calendars to stack vertically instead of horizontally.
This solves the issue of the picker being clipped horizontally inside drawers or modals.
The picker already defaults to this behaviour for mobile layout so it is a simple matter of checking for the prop

<div className={flex ${layout === "vertical" ? "flex-col" : "flex-row"} py-2}>

I have already created a fork with this update so will see if the pull request is accepted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions