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
While it was decided to only support class/classes props as part of the initial createTheme PR, there are some additional props that could be useful to change the default globally.
variant for many components (Button / ButtonGroup, ToggleGroup, ...)
TextField and FieldlabelPlacement
maybe others
Will need to identify which props makes sense that provides a good balance between flexibility and ease to maintain.
The text was updated successfully, but these errors were encountered:
techniq
changed the title
Support passing some props via createTheme / context
Support changing defaults for some additional props via createTheme / context
Jul 26, 2023
Support for some default props including labelPlacement, variant, size, etc are available per component (or base component such as Field or Button). See ComponentDefaultProps (which is used by settings() with type safety.
While it was decided to only support
class
/classes
props as part of the initial createTheme PR, there are some additional props that could be useful to change the default globally.variant
for many components (Button / ButtonGroup, ToggleGroup, ...)TextField
andField
labelPlacement
Will need to identify which props makes sense that provides a good balance between flexibility and ease to maintain.
The text was updated successfully, but these errors were encountered: