You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Icon component doesn't have a UI prop like most components. This prevent users from applying a CSS class to all instances of Icon. IMO, this is a really small harmless change, that would align Icons with the rest of the library.
As of v2.18.4, this is true for:
Form
Icon
Link
As a workaround, it's always possible to create a wrapper component.
I understand that components without the prop are just wrappers. I also
know that I can use class directly.
My need was to apply said class to all instances of a component. For
example, if I want to have all Link underlined.
Also, this would make these component work like the rest of the lib. No
reasons for them to be exceptions.
Finally, these change wouldn't impact existing users and just expand the
possibilities of customization.
Hope the clear up my request.
Le lun. 2 sept. 2024, 09:44, caligari ***@***.***> a écrit :
Description
Hi,
The Icon component doesn't have a UI prop like most components. This prevent users from applying a CSS class to all instances of Icon. IMO, this is a really small harmless change, that would align Icons with the rest of the library.
As of v2.18.4, this is true for:
As a workaround, it's always possible to create a wrapper component.
By the way, the doc state that "Each component has a ui prop". Which is not true then.
Additional context
No response
The text was updated successfully, but these errors were encountered: