Skip to content

Commit

Permalink
fix(navbar): style prop (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev authored Nov 10, 2023
1 parent 8628ba0 commit 36775dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-snakes-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/navbar": patch
---

Fix #1941 style prop added to the base navbar element.
1 change: 1 addition & 0 deletions packages/components/navbar/src/use-navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export function useNavbar(originalProps: UseNavbarProps) {
className: slots.base({class: clsx(baseStyles, props?.className)}),
style: {
"--navbar-height": height,
...otherProps?.style,
...props?.style,
},
});
Expand Down

2 comments on commit 36775dc

@vercel
Copy link

@vercel vercel bot commented on 36775dc Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 36775dc Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.