Skip to content

Commit

Permalink
fix(breadcrumbs): add RTL support to the breadcrumbs component (#2486)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbadri committed Mar 9, 2024
1 parent 2894aec commit 8f107db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/red-terms-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/breadcrumbs": patch
---

Add RTL support to the breadcrumbs component
6 changes: 5 additions & 1 deletion packages/components/breadcrumbs/src/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ const Breadcrumbs = forwardRef<"div", BreadcrumbsProps>((props, ref) => {
children,
childCount,
itemProps,
separator = <ChevronRightIcon />,
separator = (
<div className="rtl:transform rtl:rotate-180">
<ChevronRightIcon />
</div>
),
maxItems,
itemsBeforeCollapse,
itemsAfterCollapse,
Expand Down

0 comments on commit 8f107db

Please sign in to comment.