mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(spinner): pass classNames.label to slot (#2325)
This commit is contained in:
parent
a4cab30df3
commit
0b5cde7bc4
5
.changeset/pretty-mice-suffer.md
Normal file
5
.changeset/pretty-mice-suffer.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/spinner": patch
|
||||
---
|
||||
|
||||
allow styling Spinner's label by passing classNames to the slot
|
||||
@ -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>
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user