Function createReactTheme

  • Create a React theme hook function and provider component.

    const [useTheme, ThemeProvider, ThemeContext] = createReactTheme({ color: 'red' });
    

    Type Parameters

    • TTheme extends {}

    Parameters

    • defaultTheme: TTheme

    Returns readonly [useTheme: (() => TTheme), ThemeProvider: VFC<ProviderProps<TTheme>>, ThemeContext: Context<TTheme>]

Generated using TypeDoc