iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
83 stars 23 forks source link

Export StatusIconMap #402

Closed FelixGirard closed 2 years ago

FelixGirard commented 2 years ago

Feature

The StatusIconMap situated at src/core/utils/components/icons.tsx is useful and should be exported for external use.

Examples

We could use it just like you do in the alerts.

Thanks!

mayank99 commented 2 years ago

StatusIconMap is meant for internal use only, as it allows very specific props and always applies aria-hidden. If we export it, it adds extra maintenance and prevents us from making breaking changes.

Unless you have a strong reason for it, I recommend you just import the svg components from @itwin/itwinui-icons-react directly.