The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.

Home > @edtr-io/ui > useRendererUiTheme

useRendererUiTheme() function

React Hook for the theme of a renderer UI component

Signature:
export declare function useRendererUiTheme<K extends keyof RendererUiTheme>(
  key: K,
  createDefaultTheme: RendererUiThemeFactory<K>
): RendererUiTheme[K]

Parameters

ParameterTypeDescription
keyKThe renderer UI component
createDefaultThemeRendererUiThemeFactory<K>The factory for the default theme
Returns:

RendererUiTheme[K]

The current theme of the specified component