Skip to content

Commit 8bcb388

Browse files
Merge pull request #86 from jsanthosh-godaddy/jsanthosh-vertical-carousal
Add support for vertical carousal.
2 parents 6d84cdd + 0e39807 commit 8bcb388

15 files changed

+515
-29
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@babel/preset-react"
1010
],
1111
"plugins": [
12-
"@babel/plugin-transform-runtime"
12+
"@babel/plugin-transform-runtime",
13+
"inline-react-svg"
1314
]
1415
}

.storybook/webpack.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ module.exports = {
88
use: ['style-loader', 'css-loader', 'less-loader'],
99
include: path.resolve(__dirname, '../'),
1010
},
11+
{
12+
test: /\.svg$/,
13+
use: [
14+
{
15+
loader: "babel-loader"
16+
},
17+
{
18+
loader: "react-svg-loader",
19+
options: {
20+
jsx: true // true outputs JSX tags
21+
}
22+
}
23+
]
24+
}
1125
],
1226
},
1327
};

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.3.0 - March 2023
2+
3+
***(Feature)*** Add support for vertical carousal.
4+
15
# 2.2.0 - May 2022
26

37
***(Feature)*** Add support for RTL languages

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ Optional array of controls to be rendered in the carousel container. Each contro
224224
component constructor, and will be passed callback props `nextSlide`, `prevSlide` and `goToSlide` for controlling
225225
navigation, and `numSlides`, `selectedIndex` and `infinite` for rendering the state of the carousel.
226226

227+
#### isVertical
228+
```
229+
PropTypes.bool
230+
```
231+
232+
Defaults to `false`. Setting `isVertical` to `true` will render vertical carousal.
233+
227234
Tests:
228235
----------------
229236

0 commit comments

Comments
 (0)