Skip to content

Commit

Permalink
Merge pull request #477 from AnnMarieW/update-carousel-prop
Browse files Browse the repository at this point in the history
update align prop
  • Loading branch information
AnnMarieW authored Jan 22, 2025
2 parents edd3f97 + 18fe4d9 commit 49ff562
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

### Fixed
- Styled the figure buttons in the "mantine_light" and "mantine_dark" Plotly figure templates. #456 by @AnnMarieW
- In `Carousel` Allow only "center" | "start" | "end" in the `align` prop #477 by @AnnMarieW


# 0.15.1
Expand Down
4 changes: 2 additions & 2 deletions src/ts/components/extensions/carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ interface Props extends BoxProps, StylesApiProps, DashBaseProps {
orientation?: "horizontal" | "vertical";
/** Slides container `height`, required for vertical orientation */
height?: React.CSSProperties["height"];
/** Determines how slides will be aligned relative to the container. Use number between 0-1 to align slides based on percentage, where 0.5 is 50%, `'center'` by default */
align?: "start" | "center" | "end" | number;
/** Determines how slides will be aligned relative to the container. `'center'` by default */
align?: "start" | "center" | "end";
/** Number of slides that will be scrolled with next/previous buttons, `1` by default */
slidesToScroll?: number | "auto";
/** Determines whether gap between slides should be treated as part of the slide size, `true` by default */
Expand Down

0 comments on commit 49ff562

Please sign in to comment.