Skip to content

Commit 95ecb7d

Browse files
Merge pull request #76 from chinrichs-godaddy/main
Add RTL support
2 parents 098cccd + d463ca3 commit 95ecb7d

File tree

10 files changed

+25846
-2059
lines changed

10 files changed

+25846
-2059
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.14.0

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.2.0 - May 2022
2+
3+
***(Feature)*** Add support for RTL languages
4+
15
# 2.1.1 - Aug 2021
26

37
***(Bug Fix)*** Fixes the index passed to beforeChange callback when infinite scrolling is enabled.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ it indicates the number of milliseconds. Strings are parsed using [ms](https://w
201201

202202
Controls whether mouse/touch swiping is enabled, defaults to `true`.
203203

204+
#### dir
205+
`PropTypes.oneOf(['rtl', 'ltr'])`
206+
207+
Optional, used to specify the direction of the carousel. Must pass `rtl` to support RTL languages, and a parent DOM element must have the `dir` attribute set to `rtl` as well.
208+
204209
#### pauseOnHover
205210
`PropTypes.bool`
206211

0 commit comments

Comments
 (0)