fix(spinner): pass classNames.label to slot (#2325)

This commit is contained in:
Ali Idrizi 2024-02-13 01:37:57 +01:00 committed by GitHub
parent a4cab30df3
commit 0b5cde7bc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/spinner": patch
---
allow styling Spinner's label by passing classNames to the slot

View File

@ -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>
);
});