Skip to content

Commit b1add58

Browse files
Add RTL support
1 parent 098cccd commit b1add58

File tree

9 files changed

+25842
-2059
lines changed

9 files changed

+25842
-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

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)