mui / mui/base-ui

[drawer][toast] Support logical values for swipeDirection

Open
#4,402 1 comment 0 reactions 0 assignees View on GitHub
component: drawer component: toast discussion
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Discussion

Both [Drawer](https://base-ui.com/react/components/drawer#DrawerRoot-swipeDirection) and [Toast](https://base-ui.com/react/components/toast#ToastRoot-swipeDirection) 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](https://base-ui.com/react/utils/direction-provider) 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`](https://base-ui.com/react/components/popover#PopoverPositioner-side) prop of Positioner parts like `Popover.Positioner`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.