Alert - this works but should it #85
Unanswered
rhscjohn-dev
asked this question in
Q&A
Replies: 1 comment
-
Can you update to v0.24.15 and use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Alert Component.
I was playing around and seeing if I could use my own color for an Alert component.
Code
Note the lack of prop color.
As you can see the background color is gray.

With the use of a color prop throughout you components, you are limiting the dev to whatever colors you allow for that prop. If i define color called 'primary', I can.t say color="primary" because primary is not an assignable type.
Beta Was this translation helpful? Give feedback.
All reactions