@@ -52,23 +52,34 @@ export default function App() {
5252}
5353```
5454
55+ ## Responsive height
56+
57+ Height prop supports [ Tailwind CSS based] ( https://tailwindcss.com/docs/responsive-design ) breakpoint system to accommodate responsive design.
58+ To specify a height at a certain breakpoint, prefix the breakpoint name, followed by the ":" character.
59+
60+ ``` html
61+ <!-- 200px on mobile (default), 500px on medium screens and 750px on large screens -->
62+ <StackedCarousel height =" 200 md:500 lg:750" >{...}</StackedCarousel >
63+ ```
64+
65+ Visit [ responsive-design] ( https://tailwindcss.com/docs/responsive-design ) for the exhaustive list of supported breakpoints.
66+
5567## Props
5668
57- | Prop | Type | Default | Required | Description |
58- | ----------------------- | --------- | ------------------------------------ | -------- | ------------------------------------------------- |
59- | ` height ` | number | - | Yes | Height of the carousel. |
60- | ` children ` | ReactNode | - | Yes | Children nodes of the carousel. |
61- | ` autoplay ` | boolean | false | No | Automatically transition between items. |
62- | ` autoplayInterval ` | number | 4000 | No | Interval between automatic transitions. |
63- | ` containerClassName ` | string | - | No | CSS class name for the carousel container. |
64- | ` easingFunction ` | string | cubic-bezier(0.93, 0.01, 0.39, 1.01) | No | Easing function to use for the transitions. |
65- | ` navContainerClassName ` | string | - | No | CSS class name for the navigation container. |
66- | ` onNext ` | function | - | No | Callback function on moving to the next item. |
67- | ` onPrevious ` | function | - | No | Callback function on moving to the previous item. |
68- | ` scaleFactor ` | number | 0.9 | No | Scale factor for the carousel items. |
69- | ` startIndex ` | number | 0 | No | Index of the item to start on. |
70- | ` transitionDuration ` | number | 400 | No | Duration of the transitions in milliseconds. |
71- | ` verticalOffset ` | number | 10 | No | % vertical offset for the carousel items. |
69+ | Prop | Type | Default | Required | Description |
70+ | -------------------- | ---------------- | ------------------------------------ | -------- | ------------------------------------------------- |
71+ | ` height ` | number or string | - | Yes | Height of the carousel. |
72+ | ` children ` | ReactNode | - | Yes | Children nodes of the carousel. |
73+ | ` autoplay ` | boolean | false | No | Automatically transition between items. |
74+ | ` autoplayInterval ` | number | 4000 | No | Interval between automatic transitions. |
75+ | ` easingFunction ` | string | cubic-bezier(0.93, 0.01, 0.39, 1.01) | No | Easing function to use for the transitions. |
76+ | ` onNext ` | function | - | No | Callback function on moving to the next item. |
77+ | ` onPrevious ` | function | - | No | Callback function on moving to the previous item. |
78+ | ` styleOverrides ` | object | - | No | Override default styles of the carousel |
79+ | ` scaleFactor ` | number | 0.9 | No | Scale factor for the carousel items. |
80+ | ` startIndex ` | number | 0 | No | Index of the item to start on. |
81+ | ` transitionDuration ` | number | 400 | No | Duration of the transitions in milliseconds. |
82+ | ` verticalOffset ` | number | 10 | No | % vertical offset for the carousel items. |
7283
7384## Running locally
7485
0 commit comments