Skip to content

Date range vertical layout prop #312

Open
@manuweg

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

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