- Preparing search index...
- The search index is not available
@healthhero
Function withDefaultTheme
- withDefaultTheme<T>(Component: T): T
-
Type Parameters
-
T extends string & StyledComponentBase<any, any, {}, never, T> & NonReactStatics<any, {}>
Returns T
Sets the component's
defaultProps.theme
so it can reference theme properties without needing to be wrapped in a ThemeProvider.