Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Functions

Variables

ThemeProvider

ThemeProvider: ComponentType<{ theme?: Theme }>

Functions

useTheme

  • useTheme(overrides?: $DeepPartial<Theme>): Theme
  • Parameters

    • Optional overrides: $DeepPartial<Theme>

    Returns Theme

withTheme

  • withTheme<Props, C>(WrappedComponent: ComponentClass<Props, any> & C & FunctionComponent<Props> & C): ComponentClass<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }, any> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}> & FunctionComponent<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}>
  • Type parameters

    • Props: { theme: Theme }

    • C

    Parameters

    • WrappedComponent: ComponentClass<Props, any> & C & FunctionComponent<Props> & C

    Returns ComponentClass<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }, any> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}> & FunctionComponent<$Without<Props, "theme"> & { theme?: $DeepPartial<Theme> }> & NonReactStatics<ComponentClass<Props, any> & C & FunctionComponent<Props> & C, {}>

Generated using TypeDoc