Open origami-z opened 5 months ago
UI Components
To provide backwards compatibility from UITK icon API, custom components used to offer icon name as its prop.
It will be good to provide a way to load component from it's name, e.g. Country symbols's lazy loading
Add additional prop to accept Icon component. However, to avoid breaking change, consumers will need to offer the name to icon mapping
There's a branch with a POC https://github.com/jpmorganchase/salt-ds/tree/lazy-icon. But with the recent feedback around lazy being too slow it might need re-thinking.
Mostly achievable with CSS name in #3092
Area
UI Components
The problem
To provide backwards compatibility from UITK icon API, custom components used to offer icon name as its prop.
The solution
It will be good to provide a way to load component from it's name, e.g. Country symbols's lazy loading
Alternatives and examples
Add additional prop to accept Icon component. However, to avoid breaking change, consumers will need to offer the name to icon mapping
Are you a JPMorgan Chase & Co. employee?