Skip to content

[drawer][toast] Support logical values for swipeDirection #4402

@aarongarciah

Description

@aarongarciah

Discussion

Both Drawer and Toast have a swipeDirection prop. At the time of writing, swipeDirection supports these values: 'up', 'down', 'left', and 'right'.

Given that Base UI already offers a DirectionProvider component for implementing RTL UIs, would it make sense to support 'inline-start' and 'inline-end' values for the swipeDirection prop so users don't need to manage it themselves? We already support logical values on the side prop of Positioner parts like Popover.Positioner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions