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
I'd like to find a way to make the value I pass to variant type safe and have it provide autocompleted values from my theme. Currently I can pass any string to variant and it will fail silently.
<SomeComponent sx={{ variant: 'accepts any string and produces no error' }} />
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to find a way to make the value I pass to variant type safe and have it provide autocompleted values from my theme. Currently I can pass any string to variant and it will fail silently.
<SomeComponent sx={{ variant: 'accepts any string and produces no error' }} />
Beta Was this translation helpful? Give feedback.
All reactions