Hello, I have a question about constraint Compose...
# compose
n
Hello, I have a question about constraint Compose components to use certain colors from the theme. Let’s say I have a disclaimer component that can only use red or green and nothing else. How can I conform this by having a color parameter?
d
You don't, just pass an enum or boolean or something that lets you infer which color to use in the component
n
I see. Thank you!