[drawer][toast] Support logical values for swipeDirection
- 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
Assessment
This issue has not been assessed yet.