Skip to content

Commit

Permalink
fix(spinner): pass classNames.label to slot (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-idrizi authored Feb 13, 2024
1 parent a4cab30 commit 0b5cde7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pretty-mice-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/spinner": patch
---

allow styling Spinner's label by passing classNames to the slot
2 changes: 1 addition & 1 deletion packages/components/spinner/src/spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Spinner = forwardRef<"div", SpinnerProps>((props, ref) => {
<i className={slots.circle1({class: classNames?.circle1})} />
<i className={slots.circle2({class: classNames?.circle2})} />
</div>
{label && <span className={slots.label()}>{label}</span>}
{label && <span className={slots.label({class: classNames?.label})}>{label}</span>}
</div>
);
});
Expand Down

0 comments on commit 0b5cde7

Please sign in to comment.